Is there a way to hide the math plugin from the preview pane?

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: b4223f63eed946bcb2bd594f6c77c80b
Sync Version: 3
Profile Version: 48
Keychain Supported: Yes
Alternative instance ID: -

Revision: e9a9f68

AlertsPerfect: 1.0.1
Backup: 1.4.3
Cursor Sync: 2.1.0
Embed Search: 2.0.0
Extra Markdown editor settings: 1.11.0
Frontmatter Overview: 1.1.0
Hotstrings & Hotkeys: 1.0.1
Joplin Note Attachement rename: 1.2.2
Markdown table calculations: 1.0.5
Markdown Table: Colorize: 1.2.0
Markdown Table: Sortable: 1.3.0
Math Mode: 0.8.2
Note Variables: 2.0.0
Pseudocode Support: 0.1.0
Recipe Scaler: 0.9.2
Search & Replace: 2.2.0
Templates: 2.4.0
Text Colorize: 1.2.5

Sync target

OneDrive

Editor

Markdown Editor

What issue do you have?

As stated in the subject, I have a situation where I'd like to have the calculation handy in the editor pane, but not show in the preview pane. I could create a " math" note, but I'm wondering if the math plugin has a setting to not appear in the preview. Thanks

There isn't a method built-in to the plugin, but you can wrap the code sections with some custom html so that they are hidden, not a great solution but might work for your needs.

<div style="display: none">
= 2+2
= 3*3
</div>

If you use the ```math blocks, then you can also add some CSS to your userstyle.css file in order to hide the block. Just add the following to userstyle.css

pre[data-joplin-language="math"] + pre {
  display: none;
}
1 Like

Thanks I can make that work.

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