In Obsidian, you can bold something with four asterisks, italicise with two, use dollar signs for math, and equal signs to highlight.
However, I want Obsidian to detect when I put an ampersand symbol and a character after it, the character denoting the text color. For example:
&1 This text is blue.
&a This text is aqua.
&2 This text is green.
&b This text is lime.
&3 This text is yellow.
&c This text is gold.
&4 This text is orange.
&d This text is brown.
&5 This text is red.
&e This text is purple.
I also want the “formatting codes” to not be visible when colored text is not selected.
I made tooltips that appear on hover, and things like that, but I don’t know where to start when the problem involves automatically detecting text.
If anyone needs more clarity (which you will probably need), feel free to tell me!