diff options
| -rw-r--r-- | _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua index ef02b83..212809e 100644 --- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua +++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua @@ -139,7 +139,6 @@ local function Namespaces(blocks) if el.t == "Cite" and #el.content == 1 - -- TODO: maybe check case-insensitively and el.content[1].text == "@default" then -- FIXME: add CURIE to metadata @@ -147,11 +146,9 @@ local function Namespaces(blocks) end -- namespace - local proto_pattern = "^https?:" + -- TODO: relax to match URI syntax without hardcoded protocols + local proto_pattern = "^[Hh][Tt][Tt][Pp][Ss]?:" if el.t == "Str" - - -- TODO: maybe check case-insensitively - -- TODO: relax to match URI syntax without hardcoded protocols and el.text:match(proto_pattern) then -- FIXME: add CURIE and URI to metadata |
