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