Commit graph

4 commits

Author SHA1 Message Date
Matt Sturgeon
6f8d8f7aee
docs/fix-links: generalise checks for links targeting .
- Strip trailing `?query` and/or `#anchor`
- Strip leading `./` recursively
- Check if what's left is `""` or `"."`

Any link that targets the current page should be left as-is (no-op).
2025-02-25 21:47:17 +00:00
Matt Sturgeon
977b7a9fa3
docs/fix-links: pandoc markdown -> gfm
We are essentially writing GFM e.g. inline HTML comments and GFM alerts.
So tell pandoc to parse/render as such. This resolves issues such as:
`> [!TIP]` being escaped to `> \[!TIP\]`.
2025-02-24 21:14:16 +00:00
Matt Sturgeon
a39e0a6516
docs/fix-links: handle #anchor targets on the same page 2025-02-14 10:10:37 +00:00
Matt Sturgeon
7f29e4b2ae
docs/fix-links: init
The README/CONTRIBUTING files are authored with GitHub in mind, but we
want to re-use them for the docs website.

Replace the existing simple substitution with a pandoc AST-based filter.
2025-02-13 18:05:54 +00:00