I'm doing some css styling and ideally I'd be able to style the markdown & WYSIWUG windows so that different protocols look differently (is this possible without Joplin changes?). I'd want at least http/https://, note links and file:/// links to be different.
I'm able to do it on WYSIWYG (rich text?) mode but Joplin unfortunately doesn't add enough class information for me with my limited CSS knowledge to do so. Anyway the rich mode is probably good enough for now.
I'm not 100% happy with the actual styling but here is my "userstyle.css" so far (the "tok-link" stuff doesn't work, I was trying to copy the same css into both css files):
Hi! I'm new with css, and I'm trying to get the same I have with the markdown rendered in the HTML export. It works fine when I export a single note. But It doesn't work when importing entire notebook as directory. I have this css in mu usercss to warp the lines of code and to have a dark background. What I need to change in order to achieve this output when exporting an entire notebook as html?
I'm trying to style headings (H1=#=main), this works OK in WYSIWYG mode but I can't workout how to style it in the markdown editor, this is the selector (which tries to handle both):
Are you referring to the Markdown Editor (i.e. where you do the typing) or the Markdown Editor Viewer pane? The Markdown editor itself is customised using userchrome.css.
Thanks for your help, although for whatever reason your css doesn't work here on the latest version of Joplin desktop, I just had to replace ".cm-h1" to ".cm-header-1" (I will have to modify my css a bit to exactly match).
To see the css, you mean with the chrome debug tools?
That's odd. Those screenshots were made using the latest full release (Joplin Desktop 3.3.10). Are you using the "Legacy" Markdown Editor? (Tools > Options > General > Advanced > Use the legacy Markdown editor)
However if it now works for you that is all that matters
Yes. Help > Toggle development tools and some prodding about with the style inspector.
Okay, this is a followup on my previous post. Letâs say you want to change a header sometimes but not all the time. Just modify it a bit. Because temporary is way better than permanent. Especially if you really like the default.
So, letâs look at a simple way to modify the look of a header. Sometimes I just need to modify it a bit:
Iâm not a CSS wizard (truly, I donât really like it) but I need to use it. So, Iâve learned some little tricks. One is how to modify things like headers temporarily but not permanently. So ## remains the same but by adding <hdrmod/> I can make a temporary change.
Whatâs cool? You can create hdrmod1, hdrmod2 etc. Or if you have a better name, call it that (my-header-mod-name-is-better-than-yours). But you DONâT have to change the default Joplin style if you donât want to. Wicked, eh?