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

appview/pages: remove `@` from AtLink extension

we now prefer links with `@`. this change also moves the styling into
the mention class entirely.

Signed-off-by: oppiliappan <me@oppi.li>

authored by oppi.li and committed by tangled.org 2badca71 ec832d14

Changed files
+3 -3
appview
pages
markup
extension
+2 -2
appview/pages/markup/extension/atlink.go
··· 101 101 102 102 func (r *atHtmlRenderer) renderAt(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) { 103 103 if entering { 104 - w.WriteString(`<a href="/@`) 104 + w.WriteString(`<a href="/`) 105 105 w.WriteString(n.(*AtNode).Handle) 106 - w.WriteString(`" class="mention font-bold">`) 106 + w.WriteString(`" class="mention">`) 107 107 } else { 108 108 w.WriteString("</a>") 109 109 }
+1 -1
input.css
··· 162 162 } 163 163 164 164 .prose a.mention { 165 - @apply no-underline hover:underline; 165 + @apply no-underline hover:underline font-bold; 166 166 } 167 167 168 168 .prose li {