diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2022-10-05 21:03:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 14:03:10 -0400 |
commit | 6505bd347df557713061d4e84cf9548d104622d9 (patch) | |
tree | 8f48f1d066b9e807b2c5550edb5f743e7cc7fa01 /lib/packages/docutils/dochelpers.nim | |
parent | 594e93a66bd19297d23d3328a3f35aa6ac3789af (diff) | |
download | Nim-6505bd347df557713061d4e84cf9548d104622d9.tar.gz |
Markdown indented code blocks (#20473)
* Implement Markdown indented code blocks Additional indentation of 4 spaces makes a block an "indented code block" (monospaced text without syntax highlighting). Also `::` RST syntax for code blocks is disabled. So instead of ```rst see:: Some code ``` the code block should be written as ```markdown see: Some code ``` * Migrate RST literal blocks :: to Markdown's ones
Diffstat (limited to 'lib/packages/docutils/dochelpers.nim')
-rw-r--r-- | lib/packages/docutils/dochelpers.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/packages/docutils/dochelpers.nim b/lib/packages/docutils/dochelpers.nim index b85e37983..c7f7f73f5 100644 --- a/lib/packages/docutils/dochelpers.nim +++ b/lib/packages/docutils/dochelpers.nim @@ -75,10 +75,10 @@ proc toLangSymbol*(linkText: PRstNode): LangSymbol = ## Parses `linkText` into a more structured form using a state machine. ## ## This proc is designed to allow link syntax with operators even - ## without escaped backticks inside:: + ## without escaped backticks inside: ## - ## `proc *`_ - ## `proc []`_ + ## `proc *`_ + ## `proc []`_ ## ## This proc should be kept in sync with the `renderTypes` proc from ## ``compiler/typesrenderer.nim``. |