Skip to content

Commit

Permalink
escape also the minus symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
zenlor committed Jan 11, 2024
1 parent f5b3a72 commit e522709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dicer/dice.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (r *Dice) String() string {
func (r *Dice) Markdown() string {
die := r.String()
die = strings.ReplaceAll(die, `+`, `\+`)
die = strings.ReplaceAll(die, `-`, `\-`)
return fmt.Sprintf(
"%s\n *total*:%d, *rolls*:%s",
die,
Expand Down

0 comments on commit e522709

Please sign in to comment.