MineDown icon indicating copy to clipboard operation
MineDown copied to clipboard

Bad syntax parse

Open polvallverdu opened this issue 3 years ago • 1 comments

Used Version

1.7.1 for Spigot/BungeeCord

Config

There's no config

Environment description

Using it on the latest waterfall version

Full Log

No issues shown on console

What is happening?

A character is bold when it shouldn't be.

What did you expect to happen?

The character to be resetted

Additional context

Full message: "&d» &eHráč &7%player% &eti poslal žádost o přátelství. [&a[&a&l✔&a]](show_text=&7Kliknutím přijmeš žádost o přátelství. run_command=/f accept %player%) [&c[&c✖&c]](show_text=&7Kliknutím odmítneš žádost o přátelství. run_command=/f deny %player%)"

"[&a[&a&l✔&a]](show_text=&7Kliknutím přijmeš žádost o přátelství. run_command=/f accept %player%) - Normal behavior would be that the last visible parenthesis shouldn't be bold, but it looks bold ingame https://media.discordapp.net/attachments/924090640797696090/966746240815620096/unknown.jpg

This also happens putting &r before or with markdown syntax: [&a[&a**✔**&a]]. It even happens when scaping the parenthesis

polvallverdu avatar Apr 21 '22 18:04 polvallverdu

I can replicate that. The reset code (&r) is only applied after the function text block. Other text-style codes (&k, &l, &m, &n, &o) works fine here.

Image

message: "[&e[&l✔&rtest]](show_text=&7Test) XXX" message: "[&e\\[&l✔&rtest\\]](show_text=&7Test) XXX" (same result)

First test for now with MineDown 1.7.1-SNAPSHOT on PaperMC 1.21.1.

RedstoneFuture avatar Jul 26 '25 14:07 RedstoneFuture