aboutsummaryrefslogtreecommitdiff
path: root/_extensions
diff options
context:
space:
mode:
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