diff options
| author | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-18 22:58:15 +0200 |
|---|---|---|
| committer | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-18 22:58:15 +0200 |
| commit | 3f7db81172a25d8fe8637f1e0bca86d32caffe1e (patch) | |
| tree | b846e73ee2123773758fefed1dc75f2bd94ae87b /scan-tree.h | |
| parent | ui-tree: render folder README under the directory listing (diff) | |
| download | cgit-main.tar.gz cgit-main.tar.xz cgit-main.zip | |
Detect path tokens in prose (must contain a "/") and inline <code> spans
(matched verbatim, so bare Makefile/README link too) and turn them into
links to the tree/ (or about/ for *.md) view — but ONLY when the token
resolves to a path that actually exists in the repo, which we learn from
`git ls-tree -r -t` at the default branch. <pre> code blocks, existing
<a> links (no nested anchors) and tag attributes are never touched;
tokens resolve relative to the rendered file dir or the repo root.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
