aboutsummaryrefslogtreecommitdiff
path: root/_extensions
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-07 12:14:17 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-07 13:14:45 +0200
commitb62fa81c645ca75db10d6048f23b37b044cf0284 (patch)
treeab1332c4559cf05be15eeeaeb866640bfd7d9f4a /_extensions
parent6b6283bc65a05d6a111107df723f204b7f97c2f8 (diff)
cover all curie forms
Diffstat (limited to '_extensions')
-rw-r--r--_extensions/ruc-play/semantic-markdown/semantic-markdown.lua10
1 files changed, 9 insertions, 1 deletions
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