diff --git a/_plugins/open_external_links_in_new_tab.rb b/_plugins/open_external_links_in_new_tab.rb index 6fbf10e..e0496a2 100644 --- a/_plugins/open_external_links_in_new_tab.rb +++ b/_plugins/open_external_links_in_new_tab.rb @@ -23,6 +23,6 @@ def convert_links(doc) parsed_doc.css("a:not(.internal-link):not(.footnote):not(.reversefootnote)").each do |link| link.set_attribute('target', '_blank') end - doc.content = parsed_doc.to_html + doc.content = parsed_doc.inner_html end end