mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 05:50:27 +00:00
Fix wrong ordered list closing on empty lines
This commit is contained in:
parent
a1bce73751
commit
7a0e9ebcc9
@ -91,9 +91,12 @@ func geminiLineToAST(line string, state *GemLexerState, ast *[]Line) {
|
||||
}
|
||||
|
||||
if "" == strings.TrimSpace(line) {
|
||||
if state.where == "list" || state.where == "number" {
|
||||
if state.where == "list" {
|
||||
state.where = ""
|
||||
addLine(state.buf + "</ul>")
|
||||
} else if state.where == "number" {
|
||||
state.where = ""
|
||||
addLine(state.buf + "</ol>")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user