mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 08:04:18 +02:00
Fix rendering of list items
This commit is contained in:
parent
8ce98625ab
commit
9d14f27700
1 changed files with 3 additions and 3 deletions
6
gold.go
6
gold.go
|
|
@ -105,8 +105,8 @@ func NewElement(node *bf.Node) Element {
|
|||
case bf.Item:
|
||||
return Element{
|
||||
Token: string(node.Literal),
|
||||
Pre: "\n",
|
||||
Post: "\n",
|
||||
Pre: "• ",
|
||||
Post: "",
|
||||
}
|
||||
case bf.Paragraph:
|
||||
if node.Next != nil {
|
||||
|
|
@ -118,7 +118,7 @@ func NewElement(node *bf.Node) Element {
|
|||
}
|
||||
return Element{
|
||||
Token: string(node.Literal),
|
||||
Pre: "\n",
|
||||
Pre: "",
|
||||
Post: "\n",
|
||||
}
|
||||
case bf.Heading:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue