aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-11 13:11:38 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-11 13:13:43 +0200
commit902ee44c241d2b6ba991f9e8f8800b6918fd1d7e (patch)
treee320f601776bee6728634563f315a7de8759e781
parent392695a606ac0618ecfd74d92abf13f3d4feedb4 (diff)
tidy comments
-rw-r--r--_extensions/ruc-play/semantic-markdown/semantic-markdown.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua
index 3dd08d8..d41acce 100644
--- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua
+++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua
@@ -243,13 +243,17 @@ local function Statements (block)
elems:insert(el)
end
- -- disqualify bracketing not directly followed by brace
if encl == Enclosure.BRACKETED_DONE then
+
+ -- disqualify bracketing not directly followed by brace
encl = Enclosure.NONE
+
+ -- fall through to parse element as unenclosed
end
- -- specific elements represent content enclosure
if encl == Enclosure.NONE then
+
+ -- specific elements represent content enclosure
if ElementTypeIsEnclosure[el.t] then
encl = Enclosure.BRACKETED_DONE
end