A curiosity. Does your code editor support defining colors in letters? Does Markdown support this type of content? I want to create a nostr client with the possibility of defining colors in texts.
https://video.nostr.build/85450a352e71235e5f3aa85334fb2e3316819d000456c18942fd27fe299d087f.mp4
Demo of the new code editor for Nitropage. Originally I only planned to add tab support and auto-expand for the text fields, but this seems a lot nicer :). Based on the not well-known "Prism Code Editor" (https://github.com/FIameCaster/prism-code-editor).
What do you guys think? Win or epic fail?
#cms #webdev #javascript
Discussion
Good question :). Markdown in general does not "support" colored letters, that is: it does not have special syntax sugar for it. If you wanna color letters in markdown you need to workaround it via html / css. Markdown officially supports html tags. People came up with some tricks to add colors to their markdown: https://stackoverflow.com/a/65626850
Personally I went with a different approach in Nitropage: There is richtext content and there is plaintext content. In richtext content you can color the text using the richtext editor, in plaintext content (and markdown) you have to decide by yourself if you wanna do the shenanigans mentioned in the Stackoverflow thread or live with the single color.