Use HTML.fragment instead of HTML.parse
Use HTML.fragment instead of HTML.parse

HTML.parse will include doctype, <html> and <body> tags when using to_s.
Using HTML.fragment avoids this.

d-ogarkov/jekyll-extlinks