Monorepo for Tangled 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>

oppi.li a20d1dbe 897dd7b8

verified
Changed files
+3 -3
appview
pages
markup
extension
+2 -2
appview/pages/markup/extension/atlink.go
··· 87 87 88 88 func (r *atHtmlRenderer) renderAt(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) { 89 89 if entering { 90 - w.WriteString(`<a href="/@`) 90 + w.WriteString(`<a href="/`) 91 91 w.WriteString(n.(*AtNode).Handle) 92 - w.WriteString(`" class="mention font-bold">`) 92 + w.WriteString(`" class="mention">`) 93 93 } else { 94 94 w.WriteString("</a>") 95 95 }
+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 {