Need to specify fall back Asian font without messing up the tables

Operating system

Windows

Joplin version

3.4.12

Desktop version info

Joplin 3.4.12 (prod, win32)

Device: win32, AMD Ryzen 7 5800H with Radeon Graphics
Client ID: 55ce0b2fbc8e4c0c8c573a6923b41b59
Sync Version: 3
Profile Version: 48
Keychain Supported: Yes
Alternative instance ID: -

Revision: e9a9f68

Backup: 1.4.4
Better Code Blocks: 2.0.1
CodeMirror Line Numbers: 2.0.0
Ez Table: 1.0.2
Favorites: 1.3.2
Freehand Drawing: 3.1.0
Insert Date: 1.0.1
Note list (Preview): 0.0.1
Note list and sidebar toggle buttons: 1.0.3
Note Tabs: 1.4.0
Outline: 1.5.14
Paste Special: 1.1.2
Persistent Editor Layout: 2.2.0
Remove Images: 0.0.2
Reset Checkboxes: 1.1.2
Rich Markdown: 0.16.3
Search & Replace: 2.2.0
Table Formatter Plugin: 1.2.1

What issue do you have?

A few months back I needed to make sure that when Sinhala letters were used in my documents (in the markdown editor) used a specific font. So I added this css that did the trick:

body .CodeMirror5 *
 {
   font-family: "Fira Sans","Font Awesome 5 Free","icomoon","Noto Sans Sinhala"!important;
}

However, I just realized that this overrides the mono font that is used on tables in the MD editor.

Can some kind person let me know what I'm doing wrong?

Legacy editor (CodeMirror 5) table lines involve the classes cm-null (which seems reserved for tables but correct me if I'm wrong) and cm-jn-monospace (which also applies to codeblocks, inline code, etc.).

Given that information, append either :not(span.cm-null) or :not(span.cm-jn-monospace) after * to prevent overriding the monospace font used in Markdown tables (or more elements intended for use with monospace fonts).

That worked! Thank you so much. I would have never been able to figure that out. I really appreciate your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.