YAML front matter has TWO terminators

Ryan Davis's Avatar

Ryan Davis

03 May, 2012 10:25 AM

According to the YAML spec you can terminate a yaml document with both "---" and "..." but Marked only supports the former. Could you please add the ability for "..." to be used as a terminator?

(you can test this with: ruby19 -rpsych -ryaml -e 'p YAML.load "---\na: 1\n..."')

  1. Support Staff 1 Posted by Brett on 03 May, 2012 03:36 PM

    Brett's Avatar

    Added for next release, thanks for the tip.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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