-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
25 changed files
with
10 additions
and
1,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CalebJohn can you please add a guide or links to how to customize codemirror? e.g. I most likely don't want different sizes for the headers (
#
,##
, ...)fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure @tessus. Codemirror is styled with css so anything can be edited with userchrome.css. You can remove the different size headers by adding the following to userchrome
Using the debug tool you can find the classes of everything in codemirror.
fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you. I guess I will have to dive into the new CSS structure for CodeMirror. 👍
fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @CalebJohn,
Tried all these approaches on Joplin 1.7.11 on Ubuntu 18.04
no matter what the headings font size does not change in the markdown editor
Has the css selector changed recently ?
fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hemenkapadia,
I just copied last option that you pasted and tried it on my computer, it works as expected
If it doesn't work I would guess it's for one of two reasons
This can either be a forgotten step, or perhaps you have Joplin set to minimize the tray icon
~/.config/joplin-desktop
fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @CalebJohn,
Thanks for your response. I did validate everything you suggested. Still the same experience.
In the SS you can see the content of
userstyle.css
, ps output shows there is no running instance of Joplin. Then when i start Joplin I still see headers with variable font sizes in the markdown editor.fbe9669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hemenkapadia
It looks like you have you custom CSS in the wrong file. Joplin has 2 css customization files
userstyle.css
is for styling the rendered markdown in the vieweruserchrome.css
is for styling the application itself including the editor.If you move the
cm-header-x
tags touserchrome.css
everything should work properly.