diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Give readme headings anchors like GitHub's
A readme's links to its own sections, as in a table of contents, had nothing on the page to land on.
Diffstat (limited to 'tests/t0501-about-render.sh')
-rwxr-xr-xtests/t0501-about-render.sh2
1 file changed, 1 insertion, 1 deletion
diff --git a/tests/t0501-about-render.sh b/tests/t0501-about-render.sh
index b47c11d..f339526 100755
--- a/tests/t0501-about-render.sh
+++ b/tests/t0501-about-render.sh
@@ -71,7 +71,7 @@ fi
test_expect_success CGIT_LUA_LPEG 'the about page renders the markdown' '
cgit_url "md/about/" >tmp &&
- grep "<h1>The Title</h1>" tmp &&
+ grep "<h1 id=.the-title.>The Title</h1>" tmp &&
grep "<strong>bold</strong>" tmp
'