Skip to content

Commit

Permalink
Stop ignoring content of pre/code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Apr 25, 2021
1 parent b9e6728 commit a9a7742
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions htmldoc/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ func (doc *Document) parseNode(n *html.Node) {
case "base":
// Set BasePath from <base> tag
doc.BasePath = path.Join(doc.BasePath, GetAttr(n.Attr, "href"))
case "pre", "code":
return // Everything within these elements is not to be interpreted
}
case html.ErrorNode:
fmt.Printf("%+v\n", n)
Expand Down

0 comments on commit a9a7742

Please sign in to comment.