diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-03-26 20:27:12 +0100 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-03-26 20:27:12 +0100 |
| commit | 79a3ee1cf0a83dbb5280b8db6844e52e1a810361 (patch) | |
| tree | b98bed19e57695d9eb70a37f08e09395182a3c4d | |
| parent | 23415d515ad239d6f0db462dfb4dee0b710b87b7 (diff) | |
replace flag variable has_hints with counter statement_count
| -rw-r--r-- | _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua index 06b3c7f..e89916a 100644 --- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua +++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua @@ -154,8 +154,8 @@ function Statements (blocks) -- usable as flags, since it is always preceded by a marker local pos_bracketed, pos_braced - -- maintain states across inlines - local has_hints + -- amount of detected statements in this block + local statement_count = 0 local new_inlines = {} @@ -195,14 +195,14 @@ function Statements (blocks) _, pos_brace_end = string.find(el.text, "^"..curie_long.."}", pos_braced) if pos_brace_end then - has_hints = true + statement_count = statement_count + 1 -- TODO: call same function with remains of Str end end ::continue:: end -- FIXME --- if has_hints then +-- if statement_count then -- return pandoc.Inlines {new_inlines} -- end end |
