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).
I agree, the markdown-it-container would be better than those custom tags and even thou is not a standard it would be less āaggressiveā to the markdown syntax.
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 think that's the way it i supposed to work. The entire text after the bullet is of the class ace_list, thus I am not sure what can be done here.
This is a problem with the editor highlighting and unfortunately has to be fixed upstream. This does not only happen in Katex, but all emphasized text.
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?)
Ah, I am still on 1.0.201. I will install the 1.0.207 soon and create an update, didnāt realize it was out.
Because the themeās layout is done with ānth-childā selectors, the icons would rearrange if the HTML changed. If you want to mess with it in the mean time, you will need to adjust this section:
I understand it is an inbetween release, since it is not very stable for me. Maybe I should wait with this question on a firm release, Could be that next release solves the searchbox shiftā¦
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.