From 6505bd347df557713061d4e84cf9548d104622d9 Mon Sep 17 00:00:00 2001 From: Andrey Makarov Date: Wed, 5 Oct 2022 21:03:10 +0300 Subject: 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 --- lib/packages/docutils/dochelpers.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/packages/docutils/dochelpers.nim') 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``. -- cgit 1.4.1-2-gfad0