Merge pull request #136 from kepano/master

Fix issue with full HTML + DOCTYPE being inserted
This commit is contained in:
Maxime Vaillancourt 2022-10-10 15:49:18 -04:00 committed by GitHub
commit 9c688f2cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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