mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 03:29:58 -04:00
Skip paragraphs inside ListItems
This commit is contained in:
1 parent
bbaf2d2986
commit
dadf4bbc1f
1 file changed
+3
@@ -57,6 +57,9 @@ func (tr *TermRenderer) NewElement(node ast.Node, source []byte) Element {
|
||||
|
||||
// Paragraph
|
||||
case ast.KindParagraph:
|
||||
if node.Parent() != nil && node.Parent().Kind() == ast.KindListItem {
|
||||
return Element{}
|
||||
}
|
||||
return Element{
|
||||
Renderer: &ParagraphElement{},
|
||||
Finisher: &ParagraphElement{},
|
||||
|
||||
Reference in new issue
Block a user