-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: inherit text color from theme #59
base: master
Are you sure you want to change the base?
Conversation
Installed the fork, works like a charm ! |
throws an error "failed to load highlightr plugin" for some reason for this fork. The original plugin for some reason changes the font color to black in dark mode and messes everything up. Unable to use the highlighted text in blocks or internal links (almost invisible texts) |
THIS IS AMAZING!! Worked like a charm ♥♥ If you used the built in installer:
Hopefully this helps others who are less code savvy like me. |
Or you can just create a CSS file in your snippets directory mark {
color: inherit;
} |
The fork doesn't work for me with minimal theme, and this snippet works but only in reader mode, not in preview. Any idea about what I could do? |
try 1
/* Sets the text color of all highlighted elements to theme font colour */
.markdown-preview-view mark[class^="hltr-"],
.cm-s-obsidian mark[class^="hltr-"] {
color: inherit !important;
} |
Thanks @florenciagithub , but I want it with black text, because it has better contrast with the highlighting. How should I do it? I'm using minimal theme and the plugin style settings. |
@AMGMNPLK Try changing 'inherit' to 'black'. |
I might be doing something wrong. Do you say that I should create a snippet with this:
Or that I should add it in the main.js of the plugin? If that, where? |
Just added a CSS rule in the stylesheet that makes the text inherit the color from the theme.