Skip to content

Commit

Permalink
Merge pull request #135 from Klaaktu/pr1
Browse files Browse the repository at this point in the history
Fix glossary.rb removing HTML tags
  • Loading branch information
tgdwyer authored Oct 7, 2024
2 parents 3d2f93a + b9ff450 commit 450b484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/glossary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def pluralize(term)
end

def self.replace_glossary_terms(content, file_name)
doc = Nokogiri::HTML.fragment(content)
doc = Nokogiri::HTML5.parse(content)

doc.traverse do |node|
if node.text?
Expand Down

0 comments on commit 450b484

Please sign in to comment.