forked from tangled.org/core
this repo has no description

readme fixes

anirudh.fi e7bb5e3d 0e8f3837

verified
Changed files
+5 -2
appview
pages
+3 -1
appview/pages/pages.go
···
switch ext {
case ".md", ".markdown", ".mdown", ".mkdn", ".mkd":
htmlString = renderMarkdown(params.Readme)
default:
htmlString = string(params.Readme)
params.Raw = true
}
-
params.HTMLReadme = template.HTML(bluemonday.NewPolicy().Sanitize(htmlString))
}
return p.executeRepo("repo/index", w, params)
···
switch ext {
case ".md", ".markdown", ".mdown", ".mkdn", ".mkd":
htmlString = renderMarkdown(params.Readme)
+
params.Raw = false
+
params.HTMLReadme = template.HTML(bluemonday.UGCPolicy().Sanitize(htmlString))
default:
htmlString = string(params.Readme)
params.Raw = true
+
params.HTMLReadme = template.HTML(bluemonday.NewPolicy().Sanitize(htmlString))
}
}
return p.executeRepo("repo/index", w, params)
+2 -1
readme.md
···
# tangled
-
> git collaboration platform built on atproto
···
# tangled
+
+
Hello Tanglers! This is the codebase for [Tangled](https://tangled.sh)—a code collaboration platform built on the [AT Protocol](https://atproto.com).