executablebooks / MyST-Parser

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

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

Open iso2013 opened 3 months ago

iso2013 commented 3 months 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.