summary refs log tree commit diff stats
path: root/lib/std/private/bitops_utils.nim
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2022-09-04 21:52:21 +0300
committerGitHub <noreply@github.com>2022-09-04 14:52:21 -0400
commitcde6b2aab8f67291eca5375a067f97e98b7593ee (patch)
tree67f7e577b5208e823cb278dd8503d090a3e10dac /lib/std/private/bitops_utils.nim
parentb931e74a59f6e62cd1817a34b57b25ef378c8679 (diff)
downloadNim-cde6b2aab8f67291eca5375a067f97e98b7593ee.tar.gz
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
Diffstat (limited to 'lib/std/private/bitops_utils.nim')
0 files changed, 0 insertions, 0 deletions
3483' href='/akkartik/mu/commit/nqueens.mu?h=hlt&id=9458918f9eb88817e6b58e6e475597f8d60ecc40'>9458918f ^
7890b8ce ^




192d59d3 ^
7890b8ce ^


192d59d3 ^
7890b8ce ^


192d59d3 ^
7890b8ce ^
9458918f ^
7890b8ce ^


9458918f ^
7890b8ce ^
93c9862f ^

7890b8ce ^
93c9862f ^
7890b8ce ^





9458918f ^
7890b8ce ^

9458918f ^
f116818c ^
9458918f ^
f116818c ^
7890b8ce ^

9458918f ^
7890b8ce ^

192d59d3 ^
7890b8ce ^


192d59d3 ^
9458918f ^
f116818c ^
7890b8ce ^


f116818c ^
7890b8ce ^

9458918f ^
7890b8ce ^

192d59d3 ^

7890b8ce ^


192d59d3 ^



7890b8ce ^

9458918f ^
f116818c ^
7890b8ce ^


f116818c ^
7890b8ce ^
760f683f ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99