cortav  Diff

Differences From Artifact [f6f6b80f21]:

To Artifact [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,