aboutsummaryrefslogtreecommitdiff
path: root/_extensions
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-03 11:50:29 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-03 11:50:29 +0200
commit8eb1bfa622f0ec8f046f38204f00b8923669f74e (patch)
tree80bca8ae44ab3db0c2bfcb71d013fe9d2030d2f7 /_extensions
parenta65d034b92a97b56d94202cf429c07cdc2eb84f4 (diff)
fix track enclosure positions only within same inline
Diffstat (limited to '_extensions')
-rw-r--r--_extensions/ruc-play/semantic-markdown/semantic-markdown.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua
index b54cf5b..7c76670 100644
--- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua
+++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua
@@ -147,9 +147,6 @@ end
--- @see <https://pandoc.org/lua-filters.html#type-inline>
function Statements (blocks)
- -- positions of enclosure markers
- local pos_bracket_begin, pos_brace_begin, pos_brace_end
-
-- positions of beginning of enclosed content
-- usable as flags, since it is always preceded by a marker
local pos_bracketed, pos_braced
@@ -161,6 +158,9 @@ function Statements (blocks)
for i, el in ipairs(blocks.content) do
+ -- enclosure marker positions within same inline
+ local pos_bracket_begin, pos_brace_begin, pos_brace_end
+
-- unenclosed, entering bracketed enclosure
-- TODO: support nested bracket enclosure
if el.t == 'Str' and not (pos_bracketed or pos_braced) then