Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Adding color support? #382

Open
Leone25 opened this issue Oct 25, 2022 · 2 comments
Open

[feature request] Adding color support? #382

Leone25 opened this issue Oct 25, 2022 · 2 comments
Labels
feature Feature Request or Enhancement

Comments

@Leone25
Copy link

Leone25 commented Oct 25, 2022

Hello,

I've started to use Ranedo to keep my notes organized and the only thing I feel is missing is some kind of color option. I'd like to propose a way to implement it: previously I too had to build a markdown parser and I was tasked to also add support for colors; my solution was introducing a new "special structure" like this |color #696969|, this would be picked up by the parser and convert all the text that came after it to that color. I think this would fit very well in the app it self and could be expanded to also include support for "standard css colors" as well as "default colors" aka colors that can be set with css classes, eg. default would be the default text color, accent would be a highlight color, ecc. this would allow to easily add both dark and light mode + easier integration with theming.
This "special structure" could also be reused in the future to change any number of settings partially throughout the document like alignment, paragraph spacing, ecc.
I hope you like and approve the idea. As much as it's non standard, markdown doesn't really provide any other "official" way to do this.
Let me know what you think

Enrico

@ryanlelek
Copy link
Owner

Sounds good Enrico.
We are currently behind on existing features and tests, so we need to get that in a better state.
If you want to spend time on a PR proof-of-concept, we can help you along the way

@ryanlelek ryanlelek added the feature Feature Request or Enhancement label Oct 26, 2022
@Leone25
Copy link
Author

Leone25 commented Oct 26, 2022

I will look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature Request or Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants