You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh that's unfortunate! The renderers/parsers I've previously looked at has happily accepted additional data after the language spec.
notest are not the only "info" markers - we also use them for fixture injection and continuation blocks (fixture:blah)
If it doesn't complicate the parsing code we could certainly allow for a separate "comment" syntax, maybe something like: <!-- pmd-metadata: notest --> (good to have some sort of indicator that it is metadata.
According to this thread https://stackoverflow.com/questions/4823468/comments-in-markdown there doesn't seem to be an obvious "right" way to do comments in markdown, as some html renderers will actually render these comments as well. Some suggest abusing markdown link syntax instead. Anyway, happy to look at a PR if you can think of a clean way of implementing this :)
(I guess another option for you would be to patch mkdocs-material's parser to not break when looking at code blocks with multiple info fragments)
Hi,
first of all, thanks for your work on this project! I was really happy when I realized that I could test the code snippets in my docs :)
Unfortunately, I noticed that specifying additional verbs like
notest
in a code fence, e.g.results in detection errors of code blocks when using Material for MkDocs:
This is how it looks without `notest`
A possible workaround would be allowing users to specify
notest
(or fixtures) within HTML comments above the code block, e.g.If this makes sense for you, I'm happy to give it a try in a PR :)
The text was updated successfully, but these errors were encountered: