package httpd import ( "strings" "testing" ) // A rendered README sits under the page's own h1, so its headings move // down one level, ids intact; h6 stays h6 (#133). func TestDemoteHeadings(t *testing.T) { out := string(renderReadme("README.md", []byte("# Top\n\n## Next\n\n###### Deep\n"))) for _, want := range []string{`