refactor(markdown): inline assignment

This commit is contained in:
ayn2op 2025-07-24 17:59:56 -04:00
parent 08501daab7
commit 467f46a0b4

View file

@ -162,8 +162,7 @@ func (r *renderer) renderText(w io.Writer, node *ast.Text, entering bool, source
}
func (r *renderer) renderInline(w io.Writer, node *discordmd.Inline, entering bool) {
var start, end string
if entering {
if start, end := "", ""; entering {
switch node.Attr {
case discordmd.AttrBold:
start, end = "[::b]", "[::B]"