Files
Nim/tests/stdlib
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
..
2020-10-29 18:12:14 +01:00
2020-11-13 16:15:13 +08:00
2020-12-28 14:13:21 +01:00
2020-11-05 14:00:49 +01:00
2021-01-07 19:16:26 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2021-01-05 20:51:51 +01:00
2021-07-27 09:36:19 +02:00
2021-07-17 07:54:47 +02:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2021-03-26 13:05:51 +01:00
2021-04-06 16:21:58 +02:00
2021-10-24 11:51:57 +02:00
2021-07-05 10:12:58 -07:00
2020-11-23 19:53:57 +01:00
2020-12-27 14:45:57 +01:00
2019-05-16 21:06:04 +02:00
2020-11-24 19:06:41 +01:00
2020-12-28 14:13:21 +01:00
2021-01-22 19:51:11 +01:00
2021-02-06 17:33:11 +01:00
2020-10-18 12:57:13 -04:00
2021-02-22 19:58:37 +01:00
2021-03-08 10:39:39 +01:00
2021-06-16 11:31:20 +02:00
2018-12-11 21:23:21 +01:00
2022-08-23 21:44:50 +02:00
2021-08-23 00:13:39 +02:00
2021-09-02 12:10:14 +02:00
2020-11-24 19:06:41 +01:00
2021-07-19 12:43:31 +02:00
2020-12-28 14:13:21 +01:00
2021-02-09 13:04:36 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2022-07-06 13:06:41 +02:00
2020-07-12 03:31:03 -04:00
2022-05-30 12:09:18 +02:00
2018-04-30 11:16:56 +02:00
2020-12-28 14:13:21 +01:00