-
Notifications
You must be signed in to change notification settings - Fork 197
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
Feature: Per-code-block options #1283
Comments
That syntax won't work with our |
Thanks for the feedback. I'm not wedded to a particular syntax. Do I understand correctly that configurations have to be single-line? Could you give an example how the dict would look like? |
I was thinking maybe:
WDYT? |
My original intention was to mimic the ReST declaration as close as possible. But since multiple lines is not supported, a dict seems like a reasonably simple alternative in terms of clarity of expression and parsing effort. Note that there are value-less options and we have to define how these should be described, e.g. Also, all parameters need to be strings or trivially be convertable to strings:
|
Good point. I am happy to force strings? I am not opposed to multi-line/ReSt declaration implementation. It's just that all other per-file or per-code block config seem to use the |
Ok, should I start to look into the implementation (one way or the other)? |
Yes please go ahead! |
I would like to pass through options to
.. code-block::
.Syntax proposal: Support a comment at the start of code blocks
such that the resulting ReST is
The text was updated successfully, but these errors were encountered: