diff --git a/appview/pages/pages.go b/appview/pages/pages.go index 772f08d..9e11d25 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -215,11 +215,13 @@ func (p *Pages) RepoIndexPage(w io.Writer, params RepoIndexParams) error { 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)) } - params.HTMLReadme = template.HTML(bluemonday.NewPolicy().Sanitize(htmlString)) } return p.executeRepo("repo/index", w, params) diff --git a/readme.md b/readme.md index d32a190..8fb74da 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,3 @@ # tangled -> git collaboration platform built on atproto + +Hello Tanglers! This is the codebase for [Tangled](https://tangled.sh)—a code collaboration platform built on the [AT Protocol](https://atproto.com).