Phoenix616/MineDown

How to make RGB color in hover text

Closed this issue · 2 comments

How to make RGB color in hover text?
Example: MineDown.parse("[test to home](run_command=/home show_text=&#BFD44Atp to home color=#FFD44A)") Doesn't change color on hover

That's not how colors work in MineDown, either use &#rrggbb& or the event-format (which is the suggested way) with [Text](#rrggbb)/[Text](color=#rrggbb) in the hover text. (you might need to use curly brackets to separate the click/hover value [Text](show_text={[Hover](#rrggbb)}) if you include brackets in the values)

Thank you. It turned out to be done, as you described in option 1, to write an ampersand at the beginning and end of the color, but the second option with curly braces did not work, but 1 option was enough for me.