mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Drop newline after RawHTML elements
This commit is contained in:
+1
-1
@@ -334,7 +334,7 @@ func (tr *ANSIRenderer) NewElement(node ast.Node, source []byte) Element {
|
|||||||
n := node.(*ast.RawHTML)
|
n := node.(*ast.RawHTML)
|
||||||
return Element{
|
return Element{
|
||||||
Renderer: &BaseElement{
|
Renderer: &BaseElement{
|
||||||
Token: ctx.SanitizeHTML(string(n.Text(source)), true) + "\n",
|
Token: ctx.SanitizeHTML(string(n.Text(source)), true),
|
||||||
Style: ctx.options.Styles.HTMLSpan.StylePrimitive,
|
Style: ctx.options.Styles.HTMLSpan.StylePrimitive,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user