appview/pages: remove @ from AtLink extension #909

merged
opened by oppi.li targeting master from op/vtyvsnwqkrwr

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

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

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