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

Cannot get styling to work inside markdown editor #48

Open
MenooMeow opened this issue Dec 21, 2022 · 2 comments
Open

Cannot get styling to work inside markdown editor #48

MenooMeow opened this issue Dec 21, 2022 · 2 comments

Comments

@MenooMeow
Copy link

I'm pretty sure this is my mistake but I don't know what I'm doing. I'm trying to style various markdown editor elements so that color coding makes more sense while editing.

I've tried all the following in userchrome.css to make H1 light blue, but nothing works. Any suggestions?

.CodeMirror.CodeMirror span.cm-header-1 {
    color: #0095ff!important;
}
.cm-header-1, .cm-header-2, .cm-header-3, .cm-header-4, .cm-header-5, .cm-header-6 {
    line-height: 1.5em;
    color: #0095ff!important;
}

span.cm-header.cm-header-1 {
    color: #0095ff!important;
}
@CalebJohn
Copy link
Owner

Your first example works for me

.CodeMirror.CodeMirror span.cm-header-1 {
    color: #0095ff!important;
}

Are you restarting Joplin after making changes to userchrome.css? That's the most common cause of styles not applying. Make sure to use File->Quit, you might have the close to tray icon enabled which means pressing the X button doesn't actually close Joplin.

@MenooMeow
Copy link
Author

Yes I am. For some reason, I can add a CSS definition in the browser and it works. But if I copy/paste into the file, then restart, it doesn't work. This is not true of every single style, just a few of them. I'm still doing more testing. I found that disabling the MacOS theme/plugin, the blank startup failure issue I've been having with the new version of Joplin seems to have gone away.

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

No branches or pull requests

2 participants