executablebooks / MyST-Parser

An extended commonmark compliant parser, with bridges to docutils/sphinx
https://myst-parser.readthedocs.io
MIT License
736 stars 195 forks source link

Fix detection of YAML option block when using colon fences (fixes #963) #964

Open iso2013 opened 3 weeks ago

iso2013 commented 3 weeks ago

This is a quick change to fix issue #963. I think this is a reasonable solution even if the colon fence extension is not enabled, because valid YAML will never begin with :{ (with any number of colons).

Suggestions/alternatives are welcome.