mirror of
				https://github.com/osmarks/mycorrhiza.git
				synced 2025-10-31 15:43:00 +00:00 
			
		
		
		
	Do not ignore empty lines in preformatted blocks
This commit is contained in:
		| @@ -45,13 +45,17 @@ func geminiLineToAST(line string, state *GemLexerState, ast *[]Line) { | ||||
| 		*ast = append(*ast, Line{id: state.id, contents: text}) | ||||
| 	} | ||||
|  | ||||
| 	// Process empty lines depending on the current state | ||||
| 	if "" == strings.TrimSpace(line) { | ||||
| 		if state.where == "list" { | ||||
| 		switch state.where { | ||||
| 		case "list": | ||||
| 			state.where = "" | ||||
| 			addLine(state.buf + "</ul>") | ||||
| 		} else if state.where == "number" { | ||||
| 		case "number": | ||||
| 			state.where = "" | ||||
| 			addLine(state.buf + "</ol>") | ||||
| 		case "pre": | ||||
| 			state.buf += "\n" | ||||
| 		} | ||||
| 		return | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bouncepaw
					bouncepaw