-
-
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
rst parser makes a line starting with >
silently disappear
#17987
Comments
>
silently disappear>
silently disappear
I think we need to support |
looks like rst: https://docutils.sourceforge.io/docs/user/rst/quickref.html
markdown: https://wordpress.com/support/markdown-quick-reference/
is the 2nd example (with deeper nesting) also valid rst? |
nope, it requires But now the general direction is to move to better Markdown compatibility anyway (according to discussion in #17827) so I'm going to do it according to the Markdown style. |
can you give a quick summary of:
i think the most common/useful things to start with are:
|
|
... I mean when Because there will be more Markdown support, I'm thinking about providing an option like |
so I'd recommend: this flag would compose and be honored by Also, (and ideally we can add aliases in future work for other doc-specific commands like |
And then these flags end up in somebody's config causing subtle changes in the doc rendering pipeline. Or actually introducing more Nim dialects if we want to be picky. Nim is not about choices via the command line, if Nim offers choices, it should be done as language mechanisms. This is why we're moving from Even a module specific "doclang" pragma would be preferable over a command line switch, command line switches don't compose. |
i agree with your points regarding fact that this shouldn't be a cmdline flag;
that's pretty much what I had proposed a while back in nim-lang/RFCs#68: |
Implements nim-lang/RFCs#68 , see also discussion in nim-lang#17987 The permitted values: * `markdown`, which is default. It still contains nearly all of the RST supported but it is assumed that in time we will give up most or all RST features in this mode * `rst`, without any extensions * `RstMarkdown` — compatibility with Nim 1.x. It's basically RST with those Markdown features enabled that don't conflict with RST.
* Add `doctype: RST|Markdown|RstMarkdown` pragma Implements nim-lang/RFCs#68 , see also discussion in #17987 The permitted values: * `markdown`, which is default. It still contains nearly all of the RST supported but it is assumed that in time we will give up most or all RST features in this mode * `rst`, without any extensions * `RstMarkdown` — compatibility with Nim 1.x. It's basically RST with those Markdown features enabled that don't conflict with RST. * Apply suggestions from code review Co-authored-by: Clay Sweetser <[email protected]> * Additional fix in spirit of review * Fix test after #20188 Co-authored-by: Clay Sweetser <[email protected]>
* Add `doctype: RST|Markdown|RstMarkdown` pragma Implements nim-lang/RFCs#68 , see also discussion in nim-lang#17987 The permitted values: * `markdown`, which is default. It still contains nearly all of the RST supported but it is assumed that in time we will give up most or all RST features in this mode * `rst`, without any extensions * `RstMarkdown` — compatibility with Nim 1.x. It's basically RST with those Markdown features enabled that don't conflict with RST. * Apply suggestions from code review Co-authored-by: Clay Sweetser <[email protected]> * Additional fix in spirit of review * Fix test after nim-lang#20188 Co-authored-by: Clay Sweetser <[email protected]>
Last time i reported a bug in nimforum it turns out its root cause was nim's rst parser so I'm filing it here.
Example 1
see https://forum.nim-lang.org/t/7953#50676; i posted something like this:
Current Output
the 2nd line disappears
Expected Output
the 2nd line shouldn't be omitted, or at least it should give an error
Example 2
it works if there's something afterwards: this doesn't omit anything:
Additional Information
1.5.1 72d6b59
/cc @a-mr
The text was updated successfully, but these errors were encountered: