MyST-Parser: Mistletoe bugs and questions
I’m just playing around with mistletoe, and since your fork doesn’t allow issues (forks generally don’t) I’ll put code-specific comments here.
First thing I found: sometimes you want to have colons in arguments. For example in the default sphinx toctree directive it has :caption: Contents:. Doing this with myst results in this error:
yaml.scanner.ScannerError: mapping values are not allowed here
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (18 by maintainers)
From the commonmark discussions, it looks like comment blocks would be best to start with
%?Ermm yeh it just has to be correct YAML lol, as in
caption: "Contents:"You control it by the number of backslashes, each block has to have a different number, with the most on the outside, i.e.
But obviously the option to indent would be ideal.
No it doesn’t, I’ve put a few ‘todos’ for syntax extensions, primarily targets (i.e. labels), comments (as you say, preferably not just the HTML type ones), and field lists (e.g. so you can use the sphinx
:orphan:option).