mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-08-30 21:56:44 -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)
|
||||
return Element{
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user