From bec23cfcc760c8d03709b3bc7d139b3b1ef78c86 Mon Sep 17 00:00:00 2001 From: Stephan Ango <10565871+kepano@users.noreply.github.com> Date: Sun, 9 Oct 2022 13:51:36 -0700 Subject: [PATCH] Fix issue with full HTML + DOCTYPE being inserted --- _plugins/open_external_links_in_new_tab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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