refactor(markdown): inline assignment
This commit is contained in:
parent
08501daab7
commit
467f46a0b4
1 changed files with 1 additions and 2 deletions
|
|
@ -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]"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue