aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.h
diff options
context:
space:
mode:
authorJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 22:58:15 +0200
committerJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 22:58:15 +0200
commit3f7db81172a25d8fe8637f1e0bca86d32caffe1e (patch)
treeb846e73ee2123773758fefed1dc75f2bd94ae87b /ui-shared.h
parentui-tree: render folder README under the directory listing (diff)
downloadcgit-main.tar.gz
cgit-main.tar.xz
cgit-main.zip
md2html: auto-link bare repo paths in rendered markdownHEADmain
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 'ui-shared.h')
0 files changed, 0 insertions, 0 deletions