-
-
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
Markdown code blocks part 2; migrate Nim Manual #20080
Conversation
What are you going to do for links: |
Thanks for your hard work on this PR! Hint: mm: orc; threads: on; opt: speed; options: -d:release |
@AmjadHD For the case you presented one will have to use: Whether keep support to RST or not: it's not decided — lately @Araq have been pushing towards dropping RST support altogether. Though these arguments "RST is dead, Markdown has won" remind me something like "Nim is dead, C++ has won". If RST is to be kept as an option: for documentation comments in There are other cases that need to be decided, most importantly RST links to local document's sections that are as simple as |
@a-mr
That's subjective :) |
I'm thinking of borrowing of some (limited) form of the implicit_header_references extension from Pandoc Markdown. # Heading identifiers in HTML
To link:
[Heading identifiers in HTML]()
Pandoc's extension inline_code_attributes `<$>`{.haskell} I found it nice that it's close to Nim's pragma syntax (may be we can even allow to put the second dot, a |
* Change headings underscored by `~~~` to `###` * Markdown code blocks part 2; migrate Nim Manual
* Change headings underscored by `~~~` to `###` * Markdown code blocks part 2; migrate Nim Manual
Besides migrating the Manual to Markdown-style code blocks (follow-up #19954 ), this PR also:
===
and---
while using~~~
as an alternative syntax for code blocksfile=
in Markdown code blocks (I forgot to add the corresponding logic in prev. PR)