mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-08-28 04:46:29 -04:00
Skip paragraphs inside ListItems
This commit is contained in:
@@ -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