HMTL5 parsing?

perefarrando's Avatar


12 Dec, 2017 11:33 AM

Why does Marked not parse the first line of an HTML5 file, the doctype declaration (<!DOCTYPE html>)? See the image.

  1. Support Staff 1 Posted by Brett on 12 Dec, 2017 02:43 PM

    Brett's Avatar

    You have "Process Markdown inside of HTML" enabled. This is designed for when you use HTML in a Markdown document, but when loading an HTML document it causes Marked to interpret non-closing tags as plain text. I should override that when loading HTML files, but in the current version you can simply disable that setting under Preferences->Processor in the HTML section.

  2. 2 Posted by perefarrando on 12 Dec, 2017 02:49 PM

    perefarrando's Avatar

    Many thanks.

  3. Brett closed this discussion on 12 Dec, 2017 02:59 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac