-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with rST spec: code vs include #4864
Comments
These extensions have been copied from Sphinx or similar before rST got official support for this feature. |
I wonder if this kind of non-standard extensions cause some rst files to be incorrectly parsed by github's linguist eg:
|
I've fixed this in #17092, it now renders fine in github, and was unrelated to use of non-standard extensions. |
We moved to Markdown. |
rST's
include
directive provides a parametercode
for including files that should be parsed as source code which may be highlighted. This is missing in Nim. However, Nim provides a non-standard, undocumented (at least not here)file
parameter forcode
(and the nonstandardcode-block
directive).It would be better to implement the specification for
include
instead of making undocumented extensions elsewhere.The text was updated successfully, but these errors were encountered: