Nim/lib/std/private
Andrey Makarov cde6b2aab8
Implement Pandoc Markdown concise link extension (#20304)
* Implement Pandoc Markdown concise link extension

This implements https://github.com/nim-lang/Nim/issues/20127.
Besides reference to headings we also support doing references
to Nim symbols inside Nim modules.

Markdown:
```
Some heading
------------

Ref. [Some heading].
```

Nim:
```
proc someFunction*() ...

... ## Ref. [someFunction]
```

This is substitution for RST syntax like `` `target`_ ``.
All 3 syntax variants of extension from Pandoc Markdown are supported:
`[target]`, `[target][]`, `[description][target]`.

This PR also fixes clashes in existing files, particularly
conflicts with RST footnote feature, which does not work with
this PR (but there is a plan to adopt a popular [Markdown footnote
extension](https://pandoc.org/MANUAL.html#footnotes) to make footnotes work).

Also the PR fixes a bug that Markdown links did not work when `[...]`
section had a line break.

The implementation is straightforward since link resolution did not
change w.r.t. RST implementation, it's almost only about new syntax
addition. The only essential difference is a possibility to add a custom
link description: form `[description][target]` which does not have an
RST equivalent.

* fix nim 1.0 gotcha
2022-09-04 14:52:21 -04:00
..
asciitables.nim move asciitables to std/private/ (#16498) 2020-12-29 16:20:47 +01:00
bitops_utils.nim typetraits: add toSigned, toUnsigned (#18445) 2022-04-07 17:38:01 -04:00
dbutils.nim fix a sqlite bug (#18669) 2021-08-12 09:21:01 -07:00
decode_helpers.nim make oids module better (#16704) 2021-01-25 07:39:25 +01:00
digitsutils.nim fixes #19078 [backport] (#19090) 2021-11-02 16:30:59 +01:00
dragonbox.nim move formatfloat out of system (#20195) 2022-08-24 13:38:30 +02:00
gitutils.nim gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten (#17892) 2021-04-30 11:00:33 +02:00
globs.nim move assertions out of system (#19599) 2022-03-23 20:34:53 +01:00
jsutils.nim improve jsutils docs (#17421) 2021-03-21 10:35:00 +01:00
miscdollars.nim test removing dollar for objects out of system (#20242) 2022-08-24 09:44:16 +02:00
ntpath.nim Add improved Windows UNC path support in std/os (#20281) 2022-09-03 20:47:09 -04:00
schubfach.nim Implement Pandoc Markdown concise link extension (#20304) 2022-09-04 14:52:21 -04:00
since.nim document since (#17048) 2021-02-16 20:20:01 +01:00
strimpl.nim refactor cmpNimIdentifier (#16611) 2021-01-13 12:29:30 +01:00
underscored_calls.nim nnkArglist => nnkArgList + special case stylecheck:error (#17529) 2021-03-27 10:28:11 +01:00
win_getsysteminfo.nim add std/private/win_getsysteminfo; refactor the usage of GetSystemInfo (#19310) 2022-01-04 11:49:54 +01:00
win_setenv.nim Add use of Windows Wide CRT API for env. vars (#20084) 2022-08-20 04:30:11 -04:00