mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Don't show links with data-mautrix-exclude-plaintext attribute
This commit is contained in:
parent
e17822e2f7
commit
f6326f69df
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ func (parser *htmlParser) linkToEntity(node *html.Node) Entity {
|
|||
Children: parser.nodeToEntities(node.FirstChild),
|
||||
}
|
||||
|
||||
if len(href) == 0 {
|
||||
if len(href) == 0 || parser.hasAttribute(node, "data-mautrix-exclude-plaintext") {
|
||||
return entity
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue