Nim/lib
Andrey Makarov de9cbf6af1
Fix auto links to subheader when TOC is present (#20279)
Fix links to subheader when TOC is present

It was observed (in https://github.com/nim-lang/Nim/pull/20112)
that links to 2nd- (and subsequent) -level headings
fail if TOC is present, e.g.:
```nim
.. contents::

Type relations
==============

Convertible relation
--------------------

Ref. `Convertible relation`_
```

The problem here is that links are resolved in `rst.nim` but later
`rstgen.nim` fixes ("fixes") anchors to make them unique so that
TOC always works (if e.g. there was another sub-section like
"Convertible relation").
The solution implemented in this PR is to move that fix-up of anchors
into `rst.nim`, so that link resolution could know final anchors.

The bug seems to be added in https://github.com/nim-lang/Nim/pull/2332
in 2015, that is it is present in Nim 1.0.
2022-08-27 17:28:26 -04:00
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core move formatfloat out of system (#20195) 2022-08-24 13:38:30 +02:00
deprecated/pure remove some deprecated pre-1.0 stdlib modules (#20202) 2022-08-23 20:18:40 +02:00
experimental gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten (#17892) 2021-04-30 11:00:33 +02:00
genode Genode platform fixes (#17521) 2021-04-09 16:29:10 +02:00
genode_cpp [std/locks]close #7998(complete condition variables) (#17711) 2021-04-19 10:51:13 +02:00
impure make implicit cstring conversions explicit (#19488) 2022-08-19 15:40:53 -04:00
js jsffi add missing braces (#19948) 2022-06-30 23:18:11 +02:00
packages/docutils Fix auto links to subheader when TOC is present (#20279) 2022-08-27 17:28:26 -04:00
posix Adds missing SEEK_ POSIX constants for FreeRTOS (#20241) 2022-08-19 15:40:17 -04:00
pure Add missing rand(var Rand, Ordinal) overload (#20124) 2022-08-26 15:39:12 -04:00
std move formatfloat out of system (#20195) 2022-08-24 13:38:30 +02:00
system move formatfloat out of system (#20195) 2022-08-24 13:38:30 +02:00
windows enable style:usages for stdlib tests [backport: 1.6] (#19715) 2022-04-13 11:53:02 +02:00
wrappers Add OpenSSL 3 support (#19814) 2022-08-23 21:44:50 +02:00
cycle.h
deps.txt added lib/deps.txt 2021-06-03 14:00:53 +02:00
nimbase.h Add error message to pointer size check assert in lib/nimbase.h (#19549) 2022-02-27 15:36:16 +01:00
nimhcr.nim make implicit cstring conversions explicit (#19488) 2022-08-19 15:40:53 -04:00
nimhcr.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
nimrtl.nim add missing docs (#18758) 2021-08-29 09:18:54 +02:00
nimrtl.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
stdlib.nimble attempt to make the build green again 2017-01-07 02:55:15 +01:00
system.nim fixes nimPreviewSlimSystem; register echoBinSafe for nimPreviewSlimSystem (#20194) 2022-08-24 13:32:11 +02:00
system_overview.rst move io out of system (#19442) 2022-02-02 17:10:11 +01:00