mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 08:27:18 -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
|
// Paragraph
|
||||||
case ast.KindParagraph:
|
case ast.KindParagraph:
|
||||||
|
if node.Parent() != nil && node.Parent().Kind() == ast.KindListItem {
|
||||||
|
return Element{}
|
||||||
|
}
|
||||||
return Element{
|
return Element{
|
||||||
Renderer: &ParagraphElement{},
|
Renderer: &ParagraphElement{},
|
||||||
Finisher: &ParagraphElement{},
|
Finisher: &ParagraphElement{},
|
||||||
|
|||||||
Reference in New Issue
Block a user