Implement Markdown definition lists (+ migration) (#20333)
Implements definition lists Markdown extension adopted in a few implementations including: * [Pandoc]( https://pandoc.org/MANUAL.html#definition-lists) * [kramdown]( https://kramdown.gettalong.org/quickref.html#definition-lists) * [PHP extra Markdown]( https://michelf.ca/projects/php-markdown/extra/#def-list) Also affected files have been migrated. RST definition lists are turned off for Markdown: this solves the problem of broken formatting mentioned in https://github.com/nim-lang/Nim/pull/20292.
This commit is contained in:
parent
846cc746a2
commit
088487f652
15 changed files with 266 additions and 97 deletions
|
|
@ -825,10 +825,10 @@ proc rotateLeft*[T](arg: var openArray[T]; slice: HSlice[int, int];
|
|||
## If an invalid range (`HSlice`) is passed, it raises `IndexDefect`.
|
||||
##
|
||||
## `slice`
|
||||
## The indices of the element range that should be rotated.
|
||||
## : The indices of the element range that should be rotated.
|
||||
##
|
||||
## `dist`
|
||||
## The distance in amount of elements that the data should be rotated.
|
||||
## : The distance in amount of elements that the data should be rotated.
|
||||
## Can be negative, can be any number.
|
||||
##
|
||||
## **See also:**
|
||||
|
|
@ -876,10 +876,10 @@ proc rotatedLeft*[T](arg: openArray[T]; slice: HSlice[int, int],
|
|||
## If an invalid range (`HSlice`) is passed, it raises `IndexDefect`.
|
||||
##
|
||||
## `slice`
|
||||
## The indices of the element range that should be rotated.
|
||||
## : The indices of the element range that should be rotated.
|
||||
##
|
||||
## `dist`
|
||||
## The distance in amount of elements that the data should be rotated.
|
||||
## : The distance in amount of elements that the data should be rotated.
|
||||
## Can be negative, can be any number.
|
||||
##
|
||||
## **See also:**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue