From b62fa81c645ca75db10d6048f23b37b044cf0284 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 7 Apr 2025 12:14:17 +0200 Subject: cover all curie forms --- _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '_extensions') diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua index 1dc17aa..c39595a 100644 --- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua +++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua @@ -194,7 +194,15 @@ function Statements (block) -- TODO: support mixed-use enclosure -- TODO: cover curie_prefix and curie_local and curie_default if el.t == 'Str' and braced then - _, d = string.find(el.text, "^"..curie_long.."}", pos) + _, d1 = string.find(el.text, "^"..curie_long.."}", pos) + _, d2 = string.find(el.text, "^"..curie_no_ref.."}", pos) + _, d3 = string.find(el.text, "^"..curie_local.."}", pos) + _, d4 = string.find(el.text, "^"..curie_local.."}", pos) + if d1 then d = d1 + elseif d2 then d = d2 + elseif d3 then d = d3 + elseif d4 then d = d4 + end if d then statement_count = statement_count + 1 bracketed = false -- cgit v1.2.3