diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-04-07 12:14:17 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-07 13:14:45 +0200 |
| commit | b62fa81c645ca75db10d6048f23b37b044cf0284 (patch) | |
| tree | ab1332c4559cf05be15eeeaeb866640bfd7d9f4a | |
| parent | 6b6283bc65a05d6a111107df723f204b7f97c2f8 (diff) | |
cover all curie forms
| -rw-r--r-- | _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 10 |
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 |
