diff --git a/_plugins/glossary.rb b/_plugins/glossary.rb index 5ed43526..4407fc6e 100644 --- a/_plugins/glossary.rb +++ b/_plugins/glossary.rb @@ -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?