I hope that at some point in the future we can add another plugin like markdown-it-container or markdown-it-attrs. From these 2 choices, I’d favor markdown-it-container though.
Such a plugin would allow markdown syntax within that block.
The problem is that plugins are not markdown standard, which might result in compatibility issues, but I think that certain plugins like markdown-it-container become more and more a standard (what I mean is that they are included in other markdown rendering apps).
It is possible to add leading or trailing text to an element by CSS as described here. So if you can find a Unicode character that can serve as an appropriate icon, you can have it. See also these examples. Another option is to use an ‘icon font’ like Webdings and Wingdings.
If you want to insert a pure graphical object, this could be a way to do it:
Hey all, I am new to CSS but it seems pretty easy so far. I’ve been able to get a style I’m happy with by making some minor tweaks to @tessus config - thanks for posting!
The main thing I’d like to change is the userchrome.css color for KaTex in-line and block text. I would like for this color to take precedent over other colors. For example I’d like to eliminate the following rendering ‘issues’ in my current config:
KaTex text inside a bullet point is rendered as the color of bullet points in the editor
KaTex text between two _ chars such as $A_x + A_y$ is rendered as the color of italics in the editor
Note, everything renders find in the note viewer. But it would be much easier to find/edit my maths lines if they popped out. Thanks in advance!
I suspect it has to do with the fact that Katex is not Markdown code. (The $ and $$ markers or not in the Markdown specification.) But I can’t answer that for sure, since I’m not a Ace Editor developer. Maybe this question is better directed to their repo and/or forum.
According to the developer tools, it’s <span class="ace_text ace_xml">$katex_here$</span>. However, this might very well be also used for other code. Yet again, this is a question for the Ace Editor devs.
Nothing revolutionary here but I'm (finally) very happy with the colors! I use a bullet points and KaTex a lot so finding a nice color progression for regular text -> bullet points -> bold/italic was important.
Now I just wish there was a way to set KaTex to its own color
I am now on Amanda-darktheme 0.5.8 and Joplin 1.0.207 the icons have shifted to the right and the searchbox to the left. Is that intentional? For me it is somewhat unnatural. Could you advise how to get searchbox to right handside again? (or did I f#&k-up something in your theme?)
Thanks for swift adaptions. I had special tweak making the icons color --primary unfortunately that does not seem to work anymore. I liked some more color in the tool-buttons, now it is a little too monochromatic. (only the links are primary in note-text)
Hmm, looks like when the icon font was changed, it also changed the classes. I just pushed up a new version of the theme that addresses that. My CSS is getting messy, will need to do some refactoring soon.