cortav  Diff

Differences From Artifact [06fed19c69]:

To Artifact [8866cd9ea2]:


1757
1758
1759
1760
1761
1762
1763

















	end
	if v.raw then
		return val, true
	else
		return ct.parse_span(val, v.origin), false
	end
end
























>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
	end
	if v.raw then
		return val, true
	else
		return ct.parse_span(val, v.origin), false
	end
end

function ct.linkspans(link)
	if link.spans and next(link.spans) then return link.spans end

	local o, id, s = link.origin:ref(link.ref)
	if o then --TODO
		if type(o) == 'table' then
		end
		return {id}
	else -- it's a section link
		if s.heading_node then
			return s.heading_node.spans
		end
	end

	-- give up; the renderer decides how to represent this link
end