cortav  Check-in [d85fbc448f]

Overview
Comment:cleanup
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d85fbc448f1bd9063f5b46c23731c809c914be9de327def83399791da5750b8d
User & Date: lexi on 2024-07-17 22:29:55
Other Links: manifest | tags
Context
2024-07-18
18:36
fix untransmogrified footnotes begot by absent hook call check-in: bb010e612e user: lexi tags: trunk
2024-07-17
22:29
cleanup check-in: d85fbc448f user: lexi tags: trunk
22:21
beginnings of some support for captions/subtitles, excise dumb ideas from readme and fix typo, black pharaoh but this codebase needs a rewrite check-in: 435c29db6b user: lexi tags: trunk
Changes

Modified cortav.lua from [f6f6b80f21] to [b9282cddb6].

976
977
978
979
980
981
982



983
984
985
986
987
988
989

local insert_caption = blockwrap(function(l,c,j,d)
	if next(d) == nil then
		c:fail 'subtitle in an unlabeled section is meaningless'
	end

	local last = d[#d]



	local me = {
		kind = 'subtitle';
		spans = ct.parse_span(l:sub(3):gsub("^%s+",""), c);
	}

	local captionable = {
		quote=true, aside=true,







>
>
>







976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992

local insert_caption = blockwrap(function(l,c,j,d)
	if next(d) == nil then
		c:fail 'subtitle in an unlabeled section is meaningless'
	end

	local last = d[#d]
	-- make the syntax a bit friendlier in edge cases
	if last.kind == 'reference' then last = last.rsrc end

	local me = {
		kind = 'subtitle';
		spans = ct.parse_span(l:sub(3):gsub("^%s+",""), c);
	}

	local captionable = {
		quote=true, aside=true,