Skip to content

Commit

Permalink
Better handling of quoted blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed Oct 16, 2023
1 parent bc7e63b commit 445dcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md2html.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (p MarkdownParser) isPre(line string) bool {
}

func (p MarkdownParser) isQuote(line string) bool {
return strings.HasPrefix(line, "> ")
return strings.HasPrefix(line, "> ") || line == ">"
}

func (p MarkdownParser) isListItem(line string) bool {
Expand Down

0 comments on commit 445dcbf

Please sign in to comment.