fix: paragraph lexing if it's only 1 char long
This commit is contained in:
parent
682f37e49c
commit
00db423384
|
@ -72,7 +72,10 @@
|
|||
(table.insert lexed {:type "raw-text"
|
||||
:text (string.sub contents current (length contents))})
|
||||
(set current (length contents)))))) ; No decoration at all
|
||||
lexed))
|
||||
(if (> (length lexed) 0) ; If lexed is nil, the only case is we had a single \n paragraph?
|
||||
lexed
|
||||
[{:type "raw-text"
|
||||
:text "\n"}])))
|
||||
; ">" (let [(block new-end) ((. grammar :Spoiler) contents current)]
|
||||
; (table.insert lexed block)
|
||||
; (set current new-end))))
|
||||
|
|
Loading…
Reference in a new issue