mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 03:29:58 -04:00
fix: render urls in table (#248)
This commit is contained in:
1 parent
49e7da3ec8
commit
b8953ce4af
3 files changed
+15
-10
No files matched your search
+7
-2
@@ -306,8 +306,13 @@ func (tr *ANSIRenderer) NewElement(node ast.Node, source []byte) Element {
|
||||
s := ""
|
||||
n := node.FirstChild()
|
||||
for n != nil {
|
||||
s += string(n.Text(source))
|
||||
// s += string(n.LinkData.Destination)
|
||||
switch t := n.(type) {
|
||||
case *ast.AutoLink:
|
||||
s += string(t.Label(source))
|
||||
default:
|
||||
s += string(n.Text(source))
|
||||
}
|
||||
|
||||
n = n.NextSibling()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user