Implemented separators
This commit is contained in:
parent
4a4b9e168b
commit
a06f513d65
3 changed files with 12 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue