Replies: 1 comment 2 replies
-
It seems like you have correctly identified the problem 👍
I'm not sure how to fix this with the pre-existing MyST code other than to manually specify a number there. :-/ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
e.g. I want to use the automatic dedent feature of literalinclude:
With the above I get the following error:
and if I try just
dedent
I getI've also tried
dedent: None
anddedent: ''
anddedent: ""
with no luckHow do I declare an optional but empty argument?
I'm not sure but this might be a bug in MyST-Parser; in the Sphinx definition the test is using
None
to test the feature, see https://github.com/sphinx-doc/sphinx/pull/8684/fileshowever in MyST-Parser, it coerces a None value into a string:
https://github.com/executablebooks/MyST-Parser/blob/master/myst_parser/parse_directives.py#L149-L150
Beta Was this translation helpful? Give feedback.
All reactions