diff options
| -rw-r--r-- | _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 8 |
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 |
