nanoc/nanoc — pull request #291 by chocopoche (2013-03-22 16:18:43+00:00)
Title: adding a test for html doctype embeded in a <pre><code>

When an item contains:

#!html
<!DOCTYPE html>

with the relativize_paths filter, the result is messed up by the [following code](https://github.com/nanoc/nanoc/blob/release-3.6.x/lib/nanoc/filters/relativize_paths.rb#L98):

# FIXME cleanup because it is ugly
# # Because using the `Nokogiri::XML::DocumentFragment` class DOCTYPE
# pseudonodes becomes even more creepy than usual.
result.sub!(/(!DOCTYPE.+?)(>)/, '<\1>')

Is that still usefull?