Implemented separators

This commit is contained in:
2024-04-02 19:25:42 +02:00
parent 4a4b9e168b
commit a06f513d65
3 changed files with 12 additions and 0 deletions

View File

@ -117,6 +117,11 @@ func (r *renderer) processLine(line string) {
return
case '-', '*':
if strings.HasPrefix(line, "---") {
r.WriteString("<hr>")
return
}
line = strings.TrimSpace(line[1:])
if r.listLevel == 0 {