joplin-plugin-theme-studio 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -4,23 +4,44 @@
|
|
|
4
4
|
[](#-installation)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
> **Theme Studio** is an all-in-one visual engine for Joplin. Switch instantly between iconic color schemes (Tokyo Night, Everforest, Catppuccin, Nord, Dracula, Gruvbox, Atom One) with
|
|
7
|
+
> **Theme Studio** is an all-in-one visual and typography engine for Joplin. Switch instantly between iconic color schemes (Tokyo Night, Everforest, Catppuccin, Nord, Dracula, Gruvbox, Atom One) with **smart BiDi auto-detection**, **international web fonts**, **high-fidelity PDF export**, and responsive mobile rendering—**without ever touching `userstyle.css` again.**
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
## ✨
|
|
11
|
+
## ✨ Features
|
|
12
|
+
|
|
13
|
+
- 🔄 **One-Click Theme Switching:** Switch between 12+ iconic dark and light palettes on the fly.
|
|
14
|
+
- 🌍 **Smart Locale Detection & International Fonts:** Automatically detects Joplin's interface language on launch (defaults to LTR & Inter globally, or RTL & Vazirmatn for Persian/Arabic/Hebrew). Loads web fonts on the fly via CDN—ideal for mobile where system fonts cannot be installed.
|
|
15
|
+
- 🔀 **Auto-Detect BiDi & LTR Priority:** Supports pure LTR, pure RTL, or a new **Auto-Detect (Per-Paragraph BiDi)** mode that aligns each paragraph naturally according to its language.
|
|
16
|
+
- 📄 **High-Fidelity PDF & Print Engine:** Exact color and background preservation (`print-color-adjust: exact`), automatic table column wrapping (no cropped tables or printed scrollbars), wrapped code blocks (`pre-wrap`), and smart page-break isolation.
|
|
17
|
+
- 📱 **Mobile & Desktop Ready:** Works seamlessly across Joplin Desktop (Windows, macOS, Linux) and Joplin Mobile (Android/iOS) with adaptive font scaling and zero horizontal viewport sway.
|
|
18
|
+
- 📊 **Contained Mermaid Diagrams:** Centered flowcharts, rounded nodes, transparent label backgrounds, and container-isolated horizontal scrolling.
|
|
19
|
+
- 💻 **ASCII-Safe Code Blocks:** Strict horizontal scroll isolation so folder tree structures and terminal logs never break or wrap unexpectedly on screen.
|
|
20
|
+
- 📋 **Contrast & Font-Fixed Tables:** Resolves Joplin's light-mode unreadable text bug and ensures tables fully adopt your chosen typography preset.
|
|
21
|
+
- ✅ **Interactive Checklist Styling:** Checked to-do items (`- [x]`) smoothly dim to 55% opacity with an automatic strikethrough.
|
|
22
|
+
- 🖼️ **Smart Image Boundaries:** Pasted screenshots and retina graphics are auto-centered and bounded (`max-height: 520px`) to prevent them from dominating your notes.
|
|
23
|
+
- 🔗 **Cross-Note Link Distinction:** Internal Joplin note links (`:/<id>`) feature a distinct dashed accent underline to stand out from external web URLs.
|
|
24
|
+
- 📖 **Focus Reading Width:** Center and constrain line lengths on ultra-wide monitors (`Compact 760px`, `Comfortable 920px`, or `Full Width`).
|
|
12
25
|
|
|
13
|
-
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🌍 Built-In International Font Presets
|
|
14
29
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
Mobile devices running Joplin typically cannot install local system fonts. Theme Studio includes built-in web fonts served on the fly via CDN:
|
|
31
|
+
|
|
32
|
+
| Language / Script | Font Preset | Description |
|
|
33
|
+
| :--- | :--- | :--- |
|
|
34
|
+
| **Global / Latin / European / Cyrillic** | **Inter** *(Default)* | The gold standard for modern UI and long-form reading |
|
|
35
|
+
| **Clean Modern Sans** | **Roboto** | Google's versatile, high-legibility sans-serif |
|
|
36
|
+
| **Persian / Arabic / Kurdish / Urdu** | **Vazirmatn** | Modern, beautiful, and crisp Arabic-script typography |
|
|
37
|
+
| **Standard Arabic** | **Noto Sans Arabic** | Modern clean Arabic typeface from Google |
|
|
38
|
+
| **Simplified Chinese (CJK)** | **Noto Sans SC** | High-contrast Chinese typography |
|
|
39
|
+
| **Japanese (CJK)** | **Noto Sans JP** | Balanced Japanese typography |
|
|
40
|
+
| **Hebrew** | **Heebo** | Clean Hebrew and Latin typography |
|
|
41
|
+
| **Devanagari (Hindi / Sanskrit / Marathi)** | **Noto Sans Devanagari** | Complete Devanagari script support |
|
|
42
|
+
| **Editorial & Book Reading** | **Lora** | Classic serif optimized for long reading sessions |
|
|
43
|
+
| **Code & Monospace** | **Fira Code** / **JetBrains Mono** | Modern developer monospace typefaces |
|
|
44
|
+
| **Native System** | **System Default** | Zero-network overhead using your OS native font stack |
|
|
24
45
|
|
|
25
46
|
---
|
|
26
47
|
|
|
@@ -69,24 +90,28 @@ Tired of copying CSS snippets, broken bullet points in RTL, unreadable white tex
|
|
|
69
90
|
|
|
70
91
|
---
|
|
71
92
|
|
|
72
|
-
## ⚙️ Configuration
|
|
93
|
+
## ⚙️ Configuration Reference
|
|
73
94
|
|
|
74
|
-
|
|
95
|
+
Open **Tools > Options > Theme Studio** (on Mobile: **Configuration > Plugins > Theme Studio**):
|
|
75
96
|
|
|
76
|
-
| Setting | Options / Description |
|
|
77
|
-
| :--- | :--- |
|
|
78
|
-
| **Color Theme** | Select any of the 12+ built-in palettes. |
|
|
79
|
-
| **Layout Direction** |
|
|
80
|
-
| **
|
|
81
|
-
| **
|
|
82
|
-
| **
|
|
83
|
-
| **
|
|
97
|
+
| Setting | Options / Description | Default |
|
|
98
|
+
| :--- | :--- | :--- |
|
|
99
|
+
| **Color Theme** | Select any of the 12+ built-in palettes. | `Atom One Dark` |
|
|
100
|
+
| **Layout Direction** | `LTR (Global)`, `Auto-Detect (Per-Paragraph BiDi)`, or `RTL`. | Auto-detected |
|
|
101
|
+
| **International Font Preset** | Choose from 10+ web fonts (Inter, Roboto, Vazirmatn, Noto Arabic, Noto CJK, Heebo, Devanagari, Lora, System, Custom). | Auto-detected |
|
|
102
|
+
| **Custom Font Stack** | Custom font-family string (active only when *Custom Font Stack* is chosen above). | System stack |
|
|
103
|
+
| **Code Font Preset** | `Fira Code`, `JetBrains Mono`, `System Monospace`, or `Custom`. | `Fira Code` |
|
|
104
|
+
| **Custom Code Font Stack** | Custom monospace stack (active only when *Custom Code Font* is chosen above). | Cascadia / Consolas |
|
|
105
|
+
| **Font Size** | Base font size (e.g., `14px`, `16px`, `18px`, `20px`). Fully responsive on mobile. | `16px` |
|
|
106
|
+
| **Line Height** | Body line spacing (e.g., `1.6`, `1.75`, `1.9`). | `1.75` |
|
|
107
|
+
| **Reading Width (Focus Mode)** | `Full Width (100%)`, `Comfortable (920px Centered)`, or `Compact (760px Centered)`. | `Full Width` |
|
|
108
|
+
| **PDF Export Appearance** | `Exact Match` (identical colors and backgrounds) or `Paper Friendly` (white background with theme accents). | `Exact Match` |
|
|
84
109
|
|
|
85
110
|
---
|
|
86
111
|
|
|
87
112
|
## 💡 Mixed-Language (LTR in RTL) Guide
|
|
88
113
|
|
|
89
|
-
|
|
114
|
+
If your note direction is set to **RTL**, you can embed English paragraphs, code summaries, or quotes with left-to-right alignment using `<div dir="ltr">`:
|
|
90
115
|
|
|
91
116
|
```html
|
|
92
117
|
<div dir="ltr">
|
|
@@ -100,11 +125,13 @@ When your layout direction is set to **RTL**, you can insert English text, code
|
|
|
100
125
|
</div>
|
|
101
126
|
```
|
|
102
127
|
|
|
128
|
+
*(Alternatively, switch **Layout Direction** to `Auto-Detect (Per-Paragraph BiDi)` to let the plugin align each paragraph automatically without manual HTML tags).*
|
|
129
|
+
|
|
103
130
|
---
|
|
104
131
|
|
|
105
132
|
## 🛠️ Development & Building
|
|
106
133
|
|
|
107
|
-
To
|
|
134
|
+
To build Theme Studio locally:
|
|
108
135
|
|
|
109
136
|
1. **Clone the repo:**
|
|
110
137
|
```bash
|
|
@@ -117,11 +144,11 @@ To run or modify Theme Studio locally:
|
|
|
117
144
|
npm install
|
|
118
145
|
```
|
|
119
146
|
|
|
120
|
-
3. **Build the plugin
|
|
147
|
+
3. **Build the plugin bundle:**
|
|
121
148
|
```bash
|
|
122
149
|
npm run dist
|
|
123
150
|
```
|
|
124
|
-
The compiled `.jpl`
|
|
151
|
+
The compiled `.jpl` archive will be created inside the `publish/` directory.
|
|
125
152
|
|
|
126
153
|
---
|
|
127
154
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={998(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="undefined"!=typeof joplin?joplin:global.joplin},143(e,t){var o,i;t.SettingItemType=t.ContentScriptType=void 0,function(e){e.MarkdownItPlugin="markdownItPlugin",e.CodeMirrorPlugin="codeMirrorPlugin"}(o||(t.ContentScriptType=o={})),function(e){e[e.Int=1]="Int",e[e.String=2]="String",e[e.Bool=3]="Bool",e[e.Array=4]="Array",e[e.Object=5]="Object",e[e.Button=6]="Button"}(i||(t.SettingItemType=i={}))},156(e,t,o){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(o(998)),a=o(143);n.default.plugins.register({onStart:async function(){let e="ltr",t="inter";try{const o=await n.default.settings.globalValue("locale");o&&["fa","ar","he","ur","ug","ps","yi"].some(e=>o.toLowerCase().startsWith(e))&&(e="rtl",t="vazirmatn")}catch(o){e="ltr",t="inter"}await n.default.settings.registerSection("themeStudioSection",{label:"Theme Studio",iconName:"fas fa-palette"}),await n.default.settings.registerSettings({theme:{value:"atom-one-dark",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Color Theme",description:"Choose your desired color scheme.",options:{"atom-one-dark":"Atom One Dark","atom-one-light":"Atom One Light","tokyo-night":"Tokyo Night","tokyo-night-storm":"Tokyo Night Storm","everforest-dark":"Everforest Dark","everforest-light":"Everforest Light","catppuccin-mocha":"Catppuccin Mocha","catppuccin-latte":"Catppuccin Latte",nord:"Nord",dracula:"Dracula","gruvbox-dark":"Gruvbox Dark","gruvbox-light":"Gruvbox Light"}},direction:{value:e,type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Layout Direction",description:"Primary text orientation. LTR is standard; Auto adjusts per paragraph.",options:{ltr:"Left-to-Right (LTR - English / Latin / CJK / Global)",auto:"Auto-Detect (Per-Paragraph BiDi)",rtl:"Right-to-Left (RTL - Persian / Arabic / Hebrew)"}},fontPreset:{value:t,type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"International Font Preset",description:"Web fonts loaded on the fly (ideal for Mobile without local font installs).",options:{inter:"Inter (Global English, Latin, European, Cyrillic)",roboto:"Roboto (Modern Clean Sans)",system:"System Default (OS Native, Zero Network Overhead)",vazirmatn:"Vazirmatn (Persian, Arabic, Kurdish, Urdu)","noto-arabic":"Noto Sans Arabic (Modern Arabic)","noto-cjk-sc":"Noto Sans SC (Simplified Chinese)","noto-cjk-jp":"Noto Sans JP (Japanese)",heebo:"Heebo (Hebrew & Latin)","noto-devanagari":"Noto Sans Devanagari (Hindi, Sanskrit)",lora:"Lora (Editorial Serif for Books & Long Articles)",custom:"Custom Font Stack (use field below)"}},fontFamily:{value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Font Stack",description:'Active only when "Custom Font Stack" is selected above.'},codeFontPreset:{value:"fira-code",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Code Font Preset",description:"Monospace font for inline code and code blocks.",options:{"fira-code":"Fira Code (Modern Tech Monospace)","jetbrains-mono":"JetBrains Mono (Developer Favorite)","system-mono":"System Monospace (Cascadia/Consolas/Courier)",custom:"Custom Code Font (use field below)"}},codeFont:{value:"'Cascadia Code', 'Fira Code', 'Consolas', monospace",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Code Font Stack",description:'Active only when "Custom Code Font" is selected above.'},fontSize:{value:"16px",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Font Size",description:"Base font size (e.g., 14px, 16px, 18px, 20px). Works across Desktop & Mobile."},lineHeight:{value:"1.75",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Line Height",description:"Reading line spacing (e.g., 1.6, 1.75, 1.9)."},contentMaxWidth:{value:"full",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Reading Width (Focus Mode)",description:"Constrain line length on wide desktop monitors for comfortable reading.",options:{full:"Full Width (100%)",comfortable:"Comfortable Reading (920px Centered)",compact:"Compact Focus (760px Centered)"}},pdfExportStyle:{value:"exact",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Export Appearance",description:"Controls layout and background fidelity when exporting to PDF.",options:{exact:"Exact Match (100% Identical to Screen Layout & Theme)",paper:"Paper Friendly (White Page Background with Themed Accents)"}}}),await n.default.contentScripts.register(a.ContentScriptType.MarkdownItPlugin,"themeStudioMarkdownIt","./markdownTheme.js")}})}};const t={};let o=function o(i){const n=t[i];if(void 0!==n)return n.exports;const a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,o),a.exports}(156);const i=exports;for(var n in o)i[n]=o[n];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var o={998(o,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="undefined"!=typeof joplin?joplin:global.joplin},143(o,t){var e,n;t.SettingItemType=t.ContentScriptType=void 0,function(o){o.MarkdownItPlugin="markdownItPlugin",o.CodeMirrorPlugin="codeMirrorPlugin"}(e||(t.ContentScriptType=e={})),function(o){o[o.Int=1]="Int",o[o.String=2]="String",o[o.Bool=3]="Bool",o[o.Array=4]="Array",o[o.Object=5]="Object",o[o.Button=6]="Button"}(n||(t.SettingItemType=n={}))},156(o,t,e){var n=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(e(998)),a=e(143),d=e(800);r.default.plugins.register({onStart:async function(){let o="ltr",t="inter";try{const e=await r.default.settings.globalValue("locale");e&&["fa","ar","he","ur","ug","ps","yi"].some(o=>e.toLowerCase().startsWith(o))&&(o="rtl",t="vazirmatn")}catch(e){o="ltr",t="inter"}await r.default.settings.registerSection("themeStudioSection",{label:"Theme Studio",iconName:"fas fa-palette"}),await r.default.settings.registerSettings({theme:{value:"atom-one-dark",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Color Theme",description:"Choose your desired color scheme.",options:{"atom-one-dark":"Atom One Dark","atom-one-light":"Atom One Light","tokyo-night":"Tokyo Night","tokyo-night-storm":"Tokyo Night Storm","everforest-dark":"Everforest Dark","everforest-light":"Everforest Light","catppuccin-mocha":"Catppuccin Mocha","catppuccin-latte":"Catppuccin Latte",nord:"Nord",dracula:"Dracula","gruvbox-dark":"Gruvbox Dark","gruvbox-light":"Gruvbox Light"}},direction:{value:o,type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Layout Direction",description:"Primary text orientation. LTR is standard; Auto adjusts per paragraph.",options:{ltr:"Left-to-Right (LTR - English / Latin / CJK / Global)",auto:"Auto-Detect (Per-Paragraph BiDi)",rtl:"Right-to-Left (RTL - Persian / Arabic / Hebrew)"}},enableEditorTheme:{value:!0,type:a.SettingItemType.Bool,section:"themeStudioSection",public:!0,label:"Apply Theme to Markdown Editor",description:"Styles the CodeMirror editor (background, colors, line numbers, headings) to match the viewer."},fontPreset:{value:t,type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"International Font Preset",description:"Web fonts loaded on the fly (ideal for Mobile without local font installs).",options:{inter:"Inter (Global English, Latin, European, Cyrillic)",roboto:"Roboto (Modern Clean Sans)",system:"System Default (OS Native, Zero Network Overhead)",vazirmatn:"Vazirmatn (Persian, Arabic, Kurdish, Urdu)","noto-arabic":"Noto Sans Arabic (Modern Arabic)","noto-cjk-sc":"Noto Sans SC (Simplified Chinese)","noto-cjk-jp":"Noto Sans JP (Japanese)",heebo:"Heebo (Hebrew & Latin)","noto-devanagari":"Noto Sans Devanagari (Hindi, Sanskrit)",lora:"Lora (Editorial Serif for Books & Long Articles)",custom:"Custom Font Stack (use field below)"}},fontFamily:{value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Font Stack",description:'Active only when "Custom Font Stack" is selected above.'},codeFontPreset:{value:"fira-code",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Code Font Preset",description:"Monospace font for inline code and code blocks.",options:{"fira-code":"Fira Code (Modern Tech Monospace)","jetbrains-mono":"JetBrains Mono (Developer Favorite)","system-mono":"System Monospace (Cascadia/Consolas/Courier)",custom:"Custom Code Font (use field below)"}},codeFont:{value:"'Cascadia Code', 'Fira Code', 'Consolas', monospace",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Code Font Stack",description:'Active only when "Custom Code Font" is selected above.'},fontSize:{value:"16px",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Font Size",description:"Base font size (e.g., 14px, 16px, 18px, 20px). Works across Desktop & Mobile."},lineHeight:{value:"1.75",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Line Height",description:"Reading line spacing (e.g., 1.6, 1.75, 1.9)."},contentMaxWidth:{value:"full",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Reading Width (Focus Mode)",description:"Constrain line length on wide desktop monitors for comfortable reading.",options:{full:"Full Width (100%)",comfortable:"Comfortable Reading (920px Centered)",compact:"Compact Focus (760px Centered)"}},pdfExportStyle:{value:"exact",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Export Appearance",description:"Controls layout and background fidelity when exporting to PDF.",options:{exact:"Exact Match (100% Identical to Screen Layout & Theme)",paper:"Paper Friendly (White Page Background with Themed Accents)"}}}),await r.default.contentScripts.register(a.ContentScriptType.CodeMirrorPlugin,"themeStudioCodeMirror","./codeMirrorTheme.js"),await r.default.contentScripts.onMessage("themeStudioCodeMirror",async o=>{if(o&&("getAllStyles"===o.type||"getEditorStyles"===o.type)){const o=await r.default.settings.value("enableEditorTheme"),t=await async function(){return{themeKey:await r.default.settings.value("theme"),direction:await r.default.settings.value("direction"),fontPreset:await r.default.settings.value("fontPreset"),fontFamily:await r.default.settings.value("fontFamily"),codeFontPreset:await r.default.settings.value("codeFontPreset"),codeFont:await r.default.settings.value("codeFont"),fontSize:await r.default.settings.value("fontSize"),lineHeight:await r.default.settings.value("lineHeight"),contentMaxWidth:await r.default.settings.value("contentMaxWidth"),pdfExportStyle:await r.default.settings.value("pdfExportStyle")}}();return{editorCss:o?(0,d.buildEditorCss)(t):"",viewerCss:(0,d.buildThemeCss)(t)}}return null}),await r.default.contentScripts.register(a.ContentScriptType.MarkdownItPlugin,"themeStudioMarkdownIt","./markdownTheme.js")}})},800(o,t,e){t.buildEditorCss=function(o){const t=n.themes[o.themeKey]||n.themes["atom-one-dark"],{fontImport:e,resolvedFont:a,resolvedCodeFont:d}=r(o);let i=":root {\n";for(const[o,e]of Object.entries(t.variables))i+=` ${o}: ${e};\n`;i+="}\n";let m="";return m="rtl"===o.direction?"\n .cm-content, .CodeMirror-lines, body#tinymce {\n direction: rtl !important;\n text-align: right !important;\n }\n ":"auto"===o.direction?"\n .cm-content, .CodeMirror-lines, body#tinymce {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n }\n ":"\n .cm-content, .CodeMirror-lines, body#tinymce {\n direction: ltr !important;\n text-align: left !important;\n }\n ",`\n${e}\n${i}\n\n/* High-specificity override for CodeMirror 6 & CodeMirror 5 editor background */\nhtml body div.cm-editor,\nhtml body div.cm-editor .cm-scroller,\nhtml body div.cm-editor .cm-content,\nhtml body div.CodeMirror,\nhtml body div.CodeMirror-lines,\nhtml body .r-markdown-editor {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n font-family: ${a} !important;\n}\n\n.cm-content, .CodeMirror-lines {\n font-size: ${o.fontSize} !important;\n line-height: ${o.lineHeight} !important;\n caret-color: var(--od-link) !important;\n}\n\n${m}\n\n/* Gutters & Line Numbers */\n.cm-gutters, .CodeMirror-gutters {\n background-color: var(--od-bg-alt) !important;\n color: var(--od-comment) !important;\n border-right: 1px solid var(--od-border) !important;\n}\n.cm-activeLineGutter {\n background-color: var(--od-bg-alt) !important;\n color: var(--od-h2) !important;\n font-weight: bold !important;\n}\n.cm-activeLine, .CodeMirror-activeline-background {\n background-color: rgba(127, 127, 127, 0.08) !important;\n}\n\n/* Cursor & Selection */\n.CodeMirror-cursor {\n border-left: 2px solid var(--od-link) !important;\n}\n.cm-selectionBackground, .CodeMirror-selected, ::selection {\n background-color: var(--od-selection) !important;\n}\n\n/* Syntax Highlighting in Markdown Editor */\n.cm-header-1, .tok-heading-1 { color: var(--od-h1) !important; font-weight: 700 !important; }\n.cm-header-2, .tok-heading-2 { color: var(--od-h2) !important; font-weight: 700 !important; }\n.cm-header-3, .tok-heading-3 { color: var(--od-h3) !important; font-weight: 600 !important; }\n.cm-header-4, .tok-heading-4 { color: var(--od-h4) !important; font-weight: 600 !important; }\n.cm-header-5, .tok-heading-5 { color: var(--od-h5) !important; }\n.cm-header-6, .tok-heading-6 { color: var(--od-h6) !important; }\n\n.cm-link, .tok-link { color: var(--od-link) !important; text-decoration: underline !important; }\n.cm-url, .tok-url { color: var(--od-link-hover) !important; }\n.cm-strong, .tok-strong { font-weight: bold !important; color: var(--od-fg) !important; }\n.cm-em, .tok-emphasis { font-style: italic !important; }\n.cm-comment, .tok-comment { color: var(--od-comment) !important; }\n.cm-quote, .tok-quote { color: var(--od-comment) !important; font-style: italic !important; }\n\n.tok-monospace, .cm-inline-code, .cm-variable-2 {\n font-family: ${d} !important;\n background-color: var(--od-code-bg) !important;\n color: var(--od-code-fg) !important;\n border-radius: 3px !important;\n}\n\n/* TinyMCE (Rich Text Editor) Shell & Toolbar Theming */\n.tox-tinymce {\n border: 1px solid var(--od-border) !important;\n background-color: var(--od-bg) !important;\n}\n.tox .tox-toolbar,\n.tox .tox-toolbar__primary,\n.tox .tox-toolbar__overflow {\n background-color: var(--od-bg-alt) !important;\n border-bottom: 1px solid var(--od-border) !important;\n}\n.tox .tox-tbtn {\n color: var(--od-fg) !important;\n}\n.tox .tox-tbtn:hover {\n background-color: var(--od-selection) !important;\n}\n.tox .tox-tbtn svg {\n fill: var(--od-fg) !important;\n}\n`},t.buildThemeCss=function(o){const t=n.themes[o.themeKey]||n.themes["atom-one-dark"],{fontImport:e,resolvedFont:a,resolvedCodeFont:d}=r(o);let i=":root {\n";for(const[o,e]of Object.entries(t.variables))i+=` ${o}: ${e};\n`;i+=` --mermaid-font-family: ${a} !important;\n`,i+="}\n";let m="";m="rtl"===o.direction?'\nbody#tinymce, body, #rendered-md { direction: rtl !important; text-align: right !important; }\nbody#tinymce h1, #rendered-md h1 { text-align: right !important; }\nbody#tinymce h2, #rendered-md h2 {\n border-right: 5px solid var(--od-h2) !important;\n border-left: none !important;\n padding-right: 12px !important;\n padding-left: 0 !important;\n text-align: right !important;\n}\nbody#tinymce :is(h3, h4, h5, h6), #rendered-md :is(h3, h4, h5, h6) { text-align: right !important; }\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol {\n direction: rtl !important;\n text-align: right !important;\n padding-right: 1.6em !important;\n padding-left: 0 !important;\n}\n#rendered-md li, body#tinymce li { direction: rtl !important; text-align: right !important; }\n#rendered-md ul ul, #rendered-md ol ol, #rendered-md ul ol, #rendered-md ol ul,\nbody#tinymce ul ul, body#tinymce ol ol, body#tinymce ul ol, body#tinymce ol ul {\n padding-right: 1.4em !important;\n padding-left: 0 !important;\n}\n.md-checkbox input[type="checkbox"] { margin-left: 8px !important; margin-right: 0 !important; }\n\n/* RTL Blockquotes: 1px Right Border & No Left Border */\nbody#tinymce blockquote, #rendered-md blockquote {\n direction: rtl !important;\n text-align: right !important;\n border-right: 1px solid var(--od-comment) !important;\n border-left: 0 !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: right !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text {\n direction: rtl !important;\n unicode-bidi: plaintext !important;\n}\n\n#rendered-md [dir="ltr"], body#tinymce [dir="ltr"],\n#rendered-md [dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, dt, dd),\nbody#tinymce [dir="ltr"] :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, dt, dd) {\n direction: ltr !important;\n text-align: left !important;\n}\n#rendered-md [dir="ltr"] h2, body#tinymce [dir="ltr"] h2 {\n border-right: none !important;\n border-left: 5px solid var(--od-h2) !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] blockquote, body#tinymce [dir="ltr"] blockquote {\n border-right: none !important;\n border-left: 1px solid var(--od-comment) !important;\n padding-left: 16px !important;\n padding-right: 12px !important;\n}\n#rendered-md [dir="ltr"] :is(ul, ol), body#tinymce [dir="ltr"] :is(ul, ol) {\n direction: ltr !important;\n text-align: left !important;\n padding-left: 1.6em !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] :is(ul ul, ol ol, ul ol, ol ul), body#tinymce [dir="ltr"] :is(ul ul, ol ol, ul ol, ol ul) {\n padding-left: 1.4em !important;\n padding-right: 0 !important;\n}\n#rendered-md [dir="ltr"] .md-checkbox input[type="checkbox"], body#tinymce [dir="ltr"] .md-checkbox input[type="checkbox"] {\n margin-right: 8px !important;\n margin-left: 0 !important;\n}\n#rendered-md [dir="ltr"] table :is(th, td), body#tinymce [dir="ltr"] table :is(th, td) { text-align: left !important; }\n':"auto"===o.direction?"\nbody#tinymce, body, #rendered-md { direction: ltr !important; text-align: start !important; }\n#rendered-md :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, dt, dd) {\n unicode-bidi: plaintext !important;\n text-align: start !important;\n}\nbody#tinymce h2, #rendered-md h2 { border-inline-start: 5px solid var(--od-h2) !important; padding-inline-start: 12px !important; }\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol { padding-inline-start: 2em !important; }\n\n/* Auto-BiDi Blockquotes: 1px Border on Dynamic Inline Start */\nbody#tinymce blockquote, #rendered-md blockquote {\n border-inline-start: 1px solid var(--od-comment) !important;\n border-inline-end: 0 !important;\n padding-inline-start: 16px !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: start !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text { unicode-bidi: plaintext !important; }\n":'\nbody#tinymce, body, #rendered-md { direction: ltr !important; text-align: left !important; }\nbody#tinymce h2, #rendered-md h2 {\n border-left: 5px solid var(--od-h2) !important;\n border-right: none !important;\n padding-left: 12px !important;\n padding-right: 0 !important;\n}\nbody#tinymce ul, body#tinymce ol, #rendered-md ul, #rendered-md ol { padding-left: 2em !important; }\n.md-checkbox input[type="checkbox"] { margin-right: 8px !important; margin-left: 0 !important; }\n\n/* LTR Blockquotes: 1px Left Border & No Right Border */\nbody#tinymce blockquote, #rendered-md blockquote {\n border-left: 1px solid var(--od-comment) !important;\n border-right: 0 !important;\n}\nbody#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td { text-align: left !important; }\n.mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .label, .mermaid text { direction: ltr !important; }\n';let l="";"compact"===o.contentMaxWidth?l="max-width: 760px !important; margin: 0 auto !important;":"comfortable"===o.contentMaxWidth&&(l="max-width: 920px !important; margin: 0 auto !important;");const p="paper"===o.pdfExportStyle,c=p?"#ffffff":"var(--od-bg)",b=p?"#1e2227":"var(--od-fg)";return`${e}\n${i}\n${m}\n${`\n*, *::before, *::after { box-sizing: border-box !important; }\nhtml, body, #rendered-md { max-width: 100% !important; overflow-x: hidden !important; }\n::selection { background-color: var(--od-selection) !important; }\n\nbody#tinymce, body, #rendered-md {\n font-family: ${a} !important;\n line-height: ${o.lineHeight} !important;\n font-size: ${o.fontSize} !important;\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n word-break: break-word !important;\n overflow-wrap: anywhere !important;\n -webkit-font-smoothing: antialiased !important;\n -moz-osx-font-smoothing: grayscale !important;\n}\n\n#rendered-md { ${l} }\n\nbody#tinymce h1, #rendered-md h1 {\n color: var(--od-h1) !important;\n font-size: 1.75em !important;\n font-weight: 800 !important;\n padding: 0 0 8px 0 !important;\n margin: 32px 0 20px 0 !important;\n border-bottom: 2px solid var(--od-h1) !important;\n}\n\nbody#tinymce h2, #rendered-md h2 {\n color: var(--od-h2) !important;\n font-size: 1.42em !important;\n font-weight: 700 !important;\n margin: 28px 0 18px 0 !important;\n}\n\nbody#tinymce h3, #rendered-md h3 { color: var(--od-h3) !important; font-size: 1.25em !important; font-weight: 600 !important; margin: 24px 0 14px 0 !important; }\nbody#tinymce h4, #rendered-md h4 { color: var(--od-h4) !important; font-size: 1.12em !important; font-weight: 600 !important; margin: 20px 0 12px 0 !important; }\nbody#tinymce h5, #rendered-md h5 { color: var(--od-h5) !important; font-size: 1.05em !important; font-weight: 600 !important; margin: 18px 0 10px 0 !important; }\nbody#tinymce h6, #rendered-md h6 { color: var(--od-h6) !important; font-size: 1.0em !important; font-weight: 700 !important; margin: 16px 0 10px 0 !important; }\n\n#rendered-md li, body#tinymce li { margin-bottom: 0.45em !important; line-height: ${o.lineHeight} !important; }\n#rendered-md li::marker, body#tinymce li::marker { color: var(--od-h2) !important; font-weight: bold !important; }\n\n.md-checkbox input[type="checkbox"] { vertical-align: middle !important; cursor: pointer !important; }\n#rendered-md li:has(input[type="checkbox"]:checked),\nbody#tinymce li:has(input[type="checkbox"]:checked) {\n opacity: 0.55 !important;\n text-decoration: line-through !important;\n transition: opacity 0.2s ease !important;\n}\n#rendered-md li:has(input[type="checkbox"]:checked) code,\nbody#tinymce li:has(input[type="checkbox"]:checked) code { opacity: 0.8 !important; text-decoration: none !important; }\n\n#rendered-md img, body#tinymce img {\n max-width: 100% !important;\n max-height: 520px !important;\n height: auto !important;\n object-fit: contain !important;\n display: block !important;\n margin: 18px auto !important;\n border-radius: 6px !important;\n box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;\n}\n\nbody#tinymce a, #rendered-md a { color: var(--od-link) !important; text-decoration: none !important; transition: color 0.15s ease !important; }\nbody#tinymce a:hover, #rendered-md a:hover { color: var(--od-link-hover) !important; text-decoration: underline !important; }\n\n#rendered-md a[href^=":/"], body#tinymce a[href^=":/"] {\n font-weight: 600 !important;\n border-bottom: 1.5px dashed var(--od-link) !important;\n text-decoration: none !important;\n}\n#rendered-md a[href^=":/"]:hover, body#tinymce a[href^=":/"]:hover { border-bottom-style: solid !important; }\n\n/* =================================================================\n BLOCKQUOTES: NEW CLEAN MINIMAL 1PX STYLE (NO BACKGROUND, NO RADIUS)\n ================================================================= */\nbody#tinymce blockquote, #rendered-md blockquote {\n padding: 10px 16px !important;\n margin: 18px 0 !important;\n background: transparent !important;\n border-radius: 0 !important;\n color: var(--od-fg) !important;\n}\n\nmark { background-color: var(--od-mark-bg) !important; color: var(--od-fg) !important; padding: 1px 4px !important; border-radius: 3px !important; }\nkbd {\n background-color: var(--od-kbd-bg) !important;\n border: 1px solid var(--od-border) !important;\n color: var(--od-fg) !important;\n padding: 2px 5px !important;\n border-radius: 4px !important;\n font-size: 0.85em !important;\n box-shadow: 0 1px 0 rgba(0,0,0,0.2) !important;\n}\n\nbody#tinymce .joplin-source, #rendered-md .joplin-source, pre.joplin-source, div.joplin-editable > pre.joplin-source {\n display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important;\n}\n\nbody#tinymce code, #rendered-md code {\n font-family: ${d} !important;\n background-color: var(--od-code-bg) !important;\n color: var(--od-code-fg) !important;\n padding: 2px 6px !important;\n border-radius: 4px !important;\n font-size: 0.9em !important;\n}\n\nbody#tinymce pre:not(.mermaid):not(.joplin-source),\n#rendered-md pre:not(.mermaid):not(.joplin-source) {\n direction: ltr !important;\n text-align: left !important;\n unicode-bidi: isolate !important;\n background-color: var(--od-pre-bg) !important;\n border: 1px solid var(--od-pre-border) !important;\n border-radius: 6px !important;\n padding: 14px !important;\n margin: 18px 0 !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n white-space: pre !important;\n word-break: normal !important;\n word-wrap: normal !important;\n overflow-wrap: normal !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n scrollbar-color: var(--od-scrollbar-thumb) var(--od-scrollbar-track) !important;\n}\n\nbody#tinymce pre:not(.mermaid):not(.joplin-source) code,\n#rendered-md pre:not(.mermaid):not(.joplin-source) code {\n background-color: transparent !important;\n color: var(--od-fg) !important;\n padding: 0 !important;\n white-space: pre !important;\n display: inline-block !important;\n min-width: 100% !important;\n}\n\nbody#tinymce :is(p, li) code, #rendered-md :is(p, li) code {\n direction: ltr !important;\n display: inline-block !important;\n unicode-bidi: embed !important;\n vertical-align: baseline !important;\n white-space: normal !important;\n max-width: 100% !important;\n overflow-wrap: anywhere !important;\n word-break: break-word !important;\n}\n\n/* Explicit Table Font Inheritance */\nbody#tinymce table, #rendered-md table,\nbody#tinymce th, #rendered-md th,\nbody#tinymce td, #rendered-md td {\n font-family: ${a} !important;\n}\nbody#tinymce table :is(th, td) *:not(code):not(pre),\n#rendered-md table :is(th, td) *:not(code):not(pre) {\n font-family: ${a} !important;\n}\nbody#tinymce table :is(th, td) code,\n#rendered-md table :is(th, td) code {\n font-family: ${d} !important;\n}\n\nbody#tinymce table, #rendered-md table {\n border-collapse: collapse !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 20px 0 !important;\n border: 1px solid var(--od-border) !important;\n display: block !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n scrollbar-color: var(--od-scrollbar-thumb) var(--od-scrollbar-track) !important;\n color: var(--od-fg) !important;\n}\n\nbody#tinymce th, #rendered-md th {\n background-color: var(--od-table-th) !important;\n color: var(--od-link) !important;\n font-weight: bold !important;\n border: 1px solid var(--od-border) !important;\n padding: 8px 12px !important;\n white-space: nowrap !important;\n}\n\nbody#tinymce td, #rendered-md td {\n border: 1px solid var(--od-border) !important;\n padding: 8px 12px !important;\n color: var(--od-fg) !important;\n}\n\n#rendered-md table td :not(code):not(pre):not(a),\nbody#tinymce table td :not(code):not(pre):not(a) { color: var(--od-fg) !important; }\nbody#tinymce tr:nth-child(even), #rendered-md tr:nth-child(even) { background-color: var(--od-table-even) !important; }\nbody#tinymce tr:nth-child(odd), #rendered-md tr:nth-child(odd) { background-color: var(--od-table-odd) !important; }\n\n/* Mermaid Diagrams */\n#rendered-md .mermaid, #rendered-md div.mermaid, #rendered-md pre.mermaid,\nbody#tinymce .mermaid, body#tinymce div.mermaid, body#tinymce pre.mermaid {\n display: block !important;\n text-align: center !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 24px 0 !important;\n padding: 20px 14px !important;\n direction: ltr !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n -webkit-overflow-scrolling: touch !important;\n scrollbar-width: thin !important;\n background-color: var(--od-mermaid-bg) !important;\n border: 1px solid var(--od-mermaid-border) !important;\n border-radius: 8px !important;\n}\n\n#rendered-md .mermaid svg, #rendered-md div.mermaid svg, #rendered-md pre.mermaid svg {\n display: inline-block !important;\n vertical-align: middle !important;\n margin: 0 auto !important;\n height: auto !important;\n max-width: 100% !important;\n width: auto !important;\n}\n\n.mermaid foreignObject { overflow: visible !important; }\n.mermaid foreignObject div {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n white-space: normal !important;\n word-break: normal !important;\n line-height: 1.4 !important;\n text-align: center !important;\n padding: 3px 6px !important;\n}\n\n.mermaid, .mermaid svg, .mermaid text, .mermaid tspan,\n.mermaid .label, .mermaid .nodeLabel, .mermaid .edgeLabel, .mermaid .cluster-label {\n font-family: var(--mermaid-font-family) !important;\n}\n\n.mermaid .node rect, .mermaid .node polygon { rx: 6px !important; ry: 6px !important; }\n.mermaid .labelBkg, .mermaid rect.labelBkg, .mermaid span.labelBkg, .mermaid .edgeLabel rect {\n background-color: transparent !important; fill: transparent !important; opacity: 0 !important; border: none !important;\n}\n.mermaid .edgeLabel {\n background-color: var(--od-bg) !important;\n color: var(--od-fg) !important;\n border-radius: 4px !important;\n padding: 1px 6px !important;\n}\n\n.katex-display {\n max-width: 100% !important;\n overflow-x: auto !important;\n overflow-y: hidden !important;\n -webkit-overflow-scrolling: touch !important;\n box-sizing: border-box !important;\n padding: 6px 0 !important;\n}\n\n#rendered-md .table-of-contents, body#tinymce .table-of-contents {\n background-color: var(--od-bg-alt) !important;\n border: 1px solid var(--od-border) !important;\n border-radius: 6px !important;\n padding: 12px 18px !important;\n margin: 20px 0 !important;\n display: inline-block !important;\n min-width: min(100%, 300px) !important;\n}\n#rendered-md .table-of-contents ul { margin: 4px 0 !important; }\n\n#rendered-md .footnotes, body#tinymce .footnotes {\n margin-top: 40px !important;\n padding-top: 16px !important;\n border-top: 1px solid var(--od-border) !important;\n font-size: 0.88em !important;\n color: var(--od-comment) !important;\n}\n\n/* Mobile Responsiveness (< 768px) */\n@media screen and (max-width: 768px) {\n body#tinymce, body, #rendered-md {\n font-size: ${o.fontSize} !important;\n line-height: ${o.lineHeight} !important;\n max-width: 100% !important;\n overflow-x: hidden !important;\n }\n body#tinymce h1, #rendered-md h1 { font-size: 1.6em !important; margin: 20px 0 12px 0 !important; }\n body#tinymce h2, #rendered-md h2 { font-size: 1.35em !important; margin: 18px 0 10px 0 !important; }\n body#tinymce h3, #rendered-md h3 { font-size: 1.2em !important; margin: 16px 0 8px 0 !important; }\n #rendered-md img, body#tinymce img { max-height: 420px !important; }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source),\n #rendered-md pre:not(.mermaid):not(.joplin-source) {\n font-size: 0.9em !important;\n padding: 10px 12px !important;\n white-space: pre !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n }\n body#tinymce table, #rendered-md table {\n font-size: 0.9em !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n -webkit-overflow-scrolling: touch !important;\n }\n #rendered-md .mermaid, body#tinymce .mermaid {\n padding: 14px 8px !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n overflow-x: auto !important;\n }\n}\n\n/* =================================================================\n FLAWLESS PDF & PRINT EXPORT ENGINE\n ================================================================= */\n@page {\n margin: 12mm 15mm 12mm 15mm;\n size: auto;\n}\n\n@media print {\n *, *::before, *::after, html, body, #rendered-md {\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n }\n\n body, #rendered-md {\n background-color: ${c} !important;\n color: ${b} !important;\n max-width: 100% !important;\n margin: 0 !important;\n padding: 0 !important;\n font-size: 14px !important;\n line-height: ${o.lineHeight} !important;\n }\n\n body#tinymce table, #rendered-md table,\n body#tinymce th, #rendered-md th,\n body#tinymce td, #rendered-md td {\n font-family: ${a} !important;\n }\n\n body#tinymce table :is(th, td) code,\n #rendered-md table :is(th, td) code {\n font-family: ${d} !important;\n }\n\n .exported-note-title {\n color: var(--od-h1) !important;\n font-family: ${a} !important;\n font-size: 1.9em !important;\n font-weight: 800 !important;\n border-bottom: 2px solid var(--od-h1) !important;\n padding-bottom: 8px !important;\n margin-bottom: 24px !important;\n page-break-after: avoid !important;\n break-after: avoid !important;\n }\n\n body#tinymce h1, #rendered-md h1 { color: var(--od-h1) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h2, #rendered-md h2 { color: var(--od-h2) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h3, #rendered-md h3 { color: var(--od-h3) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h4, #rendered-md h4 { color: var(--od-h4) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h5, #rendered-md h5 { color: var(--od-h5) !important; page-break-after: avoid !important; break-after: avoid !important; }\n body#tinymce h6, #rendered-md h6 { color: var(--od-h6) !important; page-break-after: avoid !important; break-after: avoid !important; }\n\n body#tinymce table, #rendered-md table {\n display: table !important;\n width: 100% !important;\n max-width: 100% !important;\n table-layout: auto !important;\n overflow: visible !important;\n page-break-inside: auto !important;\n break-inside: auto !important;\n margin: 16px 0 !important;\n }\n\n body#tinymce tr, #rendered-md tr { page-break-inside: avoid !important; break-inside: avoid !important; }\n body#tinymce th, #rendered-md th, body#tinymce td, #rendered-md td {\n white-space: normal !important;\n word-break: break-word !important;\n overflow-wrap: break-word !important;\n padding: 6px 10px !important;\n }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source),\n #rendered-md pre:not(.mermaid):not(.joplin-source) {\n white-space: pre-wrap !important;\n word-break: break-word !important;\n overflow-wrap: break-word !important;\n overflow: visible !important;\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n background-color: var(--od-pre-bg) !important;\n border: 1px solid var(--od-pre-border) !important;\n padding: 12px !important;\n margin: 14px 0 !important;\n }\n\n body#tinymce pre:not(.mermaid):not(.joplin-source) code,\n #rendered-md pre:not(.mermaid):not(.joplin-source) code {\n white-space: pre-wrap !important;\n display: block !important;\n min-width: 100% !important;\n }\n\n #rendered-md .mermaid, body#tinymce .mermaid {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n overflow: visible !important;\n background-color: var(--od-mermaid-bg) !important;\n border: 1px solid var(--od-mermaid-border) !important;\n padding: 16px 10px !important;\n margin: 18px auto !important;\n }\n\n #rendered-md .mermaid svg, body#tinymce .mermaid svg {\n max-width: 100% !important;\n height: auto !important;\n display: block !important;\n margin: 0 auto !important;\n }\n\n #rendered-md img, body#tinymce img {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n max-width: 100% !important;\n height: auto !important;\n }\n\n body#tinymce blockquote, #rendered-md blockquote {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n background-color: transparent !important;\n }\n\n .katex-display {\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n overflow: visible !important;\n }\n}\n\n::-webkit-scrollbar { width: 8px !important; height: 8px !important; }\n::-webkit-scrollbar-track { background: var(--od-scrollbar-track) !important; border-radius: 4px !important; }\n::-webkit-scrollbar-thumb { background: var(--od-scrollbar-thumb) !important; border-radius: 4px !important; }\n::-webkit-scrollbar-thumb:hover { background: var(--od-scrollbar-hover) !important; }\n`}`};const n=e(880);function r(o){let t="",e=o.fontFamily;switch(o.fontPreset){case"inter":t+="@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');\n",e="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";break;case"roboto":t+="@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');\n",e="'Roboto', -apple-system, BlinkMacSystemFont, sans-serif";break;case"vazirmatn":t+="@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');\n",e="'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";break;case"noto-arabic":t+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&display=swap');\n",e="'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif";break;case"noto-cjk-sc":t+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');\n",e="'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif";break;case"noto-cjk-jp":t+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');\n",e="'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif";break;case"heebo":t+="@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700&display=swap');\n",e="'Heebo', -apple-system, BlinkMacSystemFont, sans-serif";break;case"noto-devanagari":t+="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');\n",e="'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif";break;case"lora":t+="@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');\n",e="'Lora', Georgia, serif";break;case"system":e="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";break;default:e=o.fontFamily||"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"}let n=o.codeFont;switch(o.codeFontPreset){case"fira-code":t+="@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');\n",n="'Fira Code', monospace";break;case"jetbrains-mono":t+="@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');\n",n="'JetBrains Mono', monospace";break;case"system-mono":n="'Cascadia Code', 'Consolas', 'Courier New', monospace";break;default:n=o.codeFont||"'Cascadia Code', 'Fira Code', 'Consolas', monospace"}return{fontImport:t,resolvedFont:e,resolvedCodeFont:n}}},880(o,t){t.themes=void 0,t.themes={"atom-one-dark":{name:"Atom One Dark",isDark:!0,variables:{"--od-bg":"#282c34","--od-fg":"#abb2bf","--od-bg-alt":"#2c313c","--od-border":"#3e4452","--od-comment":"#5c6370","--od-h1":"#e06c75","--od-h2":"#61afef","--od-h3":"#98c379","--od-h4":"#c678dd","--od-h5":"#56b6c2","--od-h6":"#d19a66","--od-link":"#61afef","--od-link-hover":"#56b6c2","--od-code-bg":"#3e4452","--od-code-fg":"#e06c75","--od-pre-bg":"#21252b","--od-pre-border":"#181a1f","--od-table-even":"#21252b","--od-table-odd":"#282c34","--od-table-th":"#2c313c","--od-scrollbar-track":"#1e2227","--od-scrollbar-thumb":"#4b5263","--od-scrollbar-hover":"#5c6370","--od-mermaid-bg":"#21252b","--od-mermaid-border":"#333842","--od-selection":"rgba(97, 175, 239, 0.25)","--od-mark-bg":"#634a17","--od-kbd-bg":"#353b45"}},"atom-one-light":{name:"Atom One Light",isDark:!1,variables:{"--od-bg":"#fafafa","--od-fg":"#383a42","--od-bg-alt":"#f0f0f1","--od-border":"#d0d0d0","--od-comment":"#a0a1a7","--od-h1":"#e45649","--od-h2":"#4078f2","--od-h3":"#50a14f","--od-h4":"#a626a4","--od-h5":"#0184bc","--od-h6":"#986801","--od-link":"#4078f2","--od-link-hover":"#0184bc","--od-code-bg":"#eaeaeb","--od-code-fg":"#e45649","--od-pre-bg":"#f4f4f5","--od-pre-border":"#d8d8d8","--od-table-even":"#f4f4f5","--od-table-odd":"#fafafa","--od-table-th":"#ebebeb","--od-scrollbar-track":"#e4e4e6","--od-scrollbar-thumb":"#b0b0b4","--od-scrollbar-hover":"#8e8e93","--od-mermaid-bg":"#fbfbfb","--od-mermaid-border":"#e4e4e6","--od-selection":"rgba(64, 120, 242, 0.2)","--od-mark-bg":"#ffeaa7","--od-kbd-bg":"#eaeaeb"}},"tokyo-night":{name:"Tokyo Night",isDark:!0,variables:{"--od-bg":"#1a1b26","--od-fg":"#c0caf5","--od-bg-alt":"#16161e","--od-border":"#292e42","--od-comment":"#565f89","--od-h1":"#f7768e","--od-h2":"#7aa2f7","--od-h3":"#9ece6a","--od-h4":"#bb9af7","--od-h5":"#7dcfff","--od-h6":"#e0af68","--od-link":"#7aa2f7","--od-link-hover":"#7dcfff","--od-code-bg":"#24283b","--od-code-fg":"#f7768e","--od-pre-bg":"#1f2335","--od-pre-border":"#292e42","--od-table-even":"#1f2335","--od-table-odd":"#1a1b26","--od-table-th":"#24283b","--od-scrollbar-track":"#16161e","--od-scrollbar-thumb":"#3b4261","--od-scrollbar-hover":"#565f89","--od-mermaid-bg":"#1f2335","--od-mermaid-border":"#292e42","--od-selection":"rgba(122, 162, 247, 0.25)","--od-mark-bg":"#3d3725","--od-kbd-bg":"#24283b"}},"tokyo-night-storm":{name:"Tokyo Night Storm",isDark:!0,variables:{"--od-bg":"#24283b","--od-fg":"#c0caf5","--od-bg-alt":"#1f2335","--od-border":"#3b4261","--od-comment":"#565f89","--od-h1":"#f7768e","--od-h2":"#7aa2f7","--od-h3":"#9ece6a","--od-h4":"#bb9af7","--od-h5":"#7dcfff","--od-h6":"#e0af68","--od-link":"#7aa2f7","--od-link-hover":"#7dcfff","--od-code-bg":"#2f354f","--od-code-fg":"#f7768e","--od-pre-bg":"#1a1b26","--od-pre-border":"#2f354f","--od-table-even":"#1f2335","--od-table-odd":"#24283b","--od-table-th":"#2f354f","--od-scrollbar-track":"#1f2335","--od-scrollbar-thumb":"#414868","--od-scrollbar-hover":"#565f89","--od-mermaid-bg":"#1f2335","--od-mermaid-border":"#3b4261","--od-selection":"rgba(122, 162, 247, 0.25)","--od-mark-bg":"#3d3725","--od-kbd-bg":"#2f354f"}},"everforest-dark":{name:"Everforest Dark",isDark:!0,variables:{"--od-bg":"#2d353b","--od-fg":"#d3c6aa","--od-bg-alt":"#232a2e","--od-border":"#475258","--od-comment":"#859289","--od-h1":"#e67e80","--od-h2":"#7fbbb3","--od-h3":"#a7c080","--od-h4":"#d699b6","--od-h5":"#83c092","--od-h6":"#dbbc7f","--od-link":"#7fbbb3","--od-link-hover":"#83c092","--od-code-bg":"#343f44","--od-code-fg":"#e67e80","--od-pre-bg":"#232a2e","--od-pre-border":"#3d484d","--od-table-even":"#232a2e","--od-table-odd":"#2d353b","--od-table-th":"#343f44","--od-scrollbar-track":"#232a2e","--od-scrollbar-thumb":"#475258","--od-scrollbar-hover":"#56635f","--od-mermaid-bg":"#232a2e","--od-mermaid-border":"#3d484d","--od-selection":"rgba(127, 187, 179, 0.25)","--od-mark-bg":"#494228","--od-kbd-bg":"#343f44"}},"everforest-light":{name:"Everforest Light",isDark:!1,variables:{"--od-bg":"#fdf6e3","--od-fg":"#5c6a72","--od-bg-alt":"#f4f0d9","--od-border":"#e0dcc7","--od-comment":"#939f91","--od-h1":"#f85552","--od-h2":"#3a94c5","--od-h3":"#8da101","--od-h4":"#df69ba","--od-h5":"#35a77c","--od-h6":"#dfa000","--od-link":"#3a94c5","--od-link-hover":"#35a77c","--od-code-bg":"#ece7cf","--od-code-fg":"#f85552","--od-pre-bg":"#f4f0d9","--od-pre-border":"#e0dcc7","--od-table-even":"#f4f0d9","--od-table-odd":"#fdf6e3","--od-table-th":"#ebe5c8","--od-scrollbar-track":"#f4f0d9","--od-scrollbar-thumb":"#cfc8ab","--od-scrollbar-hover":"#a7a083","--od-mermaid-bg":"#faf5e0","--od-mermaid-border":"#e0dcc7","--od-selection":"rgba(58, 148, 197, 0.2)","--od-mark-bg":"#fae3b0","--od-kbd-bg":"#ebe5c8"}},"catppuccin-mocha":{name:"Catppuccin Mocha",isDark:!0,variables:{"--od-bg":"#1e1e2e","--od-fg":"#cdd6f4","--od-bg-alt":"#181825","--od-border":"#45475a","--od-comment":"#6c7086","--od-h1":"#f38ba8","--od-h2":"#89b4fa","--od-h3":"#a6e3a1","--od-h4":"#cba6f7","--od-h5":"#89dceb","--od-h6":"#fab387","--od-link":"#89b4fa","--od-link-hover":"#89dceb","--od-code-bg":"#313244","--od-code-fg":"#f38ba8","--od-pre-bg":"#181825","--od-pre-border":"#313244","--od-table-even":"#181825","--od-table-odd":"#1e1e2e","--od-table-th":"#313244","--od-scrollbar-track":"#181825","--od-scrollbar-thumb":"#45475a","--od-scrollbar-hover":"#585b70","--od-mermaid-bg":"#181825","--od-mermaid-border":"#313244","--od-selection":"rgba(137, 180, 250, 0.25)","--od-mark-bg":"#453c24","--od-kbd-bg":"#313244"}},"catppuccin-latte":{name:"Catppuccin Latte",isDark:!1,variables:{"--od-bg":"#eff1f5","--od-fg":"#4c4f69","--od-bg-alt":"#e6e9ef","--od-border":"#ccd0da","--od-comment":"#8c8fa1","--od-h1":"#d20f39","--od-h2":"#1e66f5","--od-h3":"#40a02b","--od-h4":"#8839ef","--od-h5":"#04a5e5","--od-h6":"#fe640b","--od-link":"#1e66f5","--od-link-hover":"#04a5e5","--od-code-bg":"#e6e9ef","--od-code-fg":"#d20f39","--od-pre-bg":"#e6e9ef","--od-pre-border":"#ccd0da","--od-table-even":"#e6e9ef","--od-table-odd":"#eff1f5","--od-table-th":"#dce0e8","--od-scrollbar-track":"#e6e9ef","--od-scrollbar-thumb":"#bcc0cc","--od-scrollbar-hover":"#9ca0b0","--od-mermaid-bg":"#f2f4f8","--od-mermaid-border":"#ccd0da","--od-selection":"rgba(30, 102, 245, 0.2)","--od-mark-bg":"#feefc3","--od-kbd-bg":"#e6e9ef"}},nord:{name:"Nord",isDark:!0,variables:{"--od-bg":"#2e3440","--od-fg":"#d8dee9","--od-bg-alt":"#242933","--od-border":"#434c5e","--od-comment":"#616e88","--od-h1":"#bf616a","--od-h2":"#88c0d0","--od-h3":"#a3be8c","--od-h4":"#b48ead","--od-h5":"#81a1c1","--od-h6":"#ebcb8b","--od-link":"#88c0d0","--od-link-hover":"#8fbcbb","--od-code-bg":"#3b4252","--od-code-fg":"#bf616a","--od-pre-bg":"#242933","--od-pre-border":"#3b4252","--od-table-even":"#242933","--od-table-odd":"#2e3440","--od-table-th":"#3b4252","--od-scrollbar-track":"#242933","--od-scrollbar-thumb":"#434c5e","--od-scrollbar-hover":"#4c566a","--od-mermaid-bg":"#242933","--od-mermaid-border":"#3b4252","--od-selection":"rgba(136, 192, 208, 0.25)","--od-mark-bg":"#453e28","--od-kbd-bg":"#3b4252"}},dracula:{name:"Dracula",isDark:!0,variables:{"--od-bg":"#282a36","--od-fg":"#f8f8f2","--od-bg-alt":"#21222c","--od-border":"#44475a","--od-comment":"#6272a4","--od-h1":"#ff5555","--od-h2":"#8be9fd","--od-h3":"#50fa7b","--od-h4":"#ff79c6","--od-h5":"#bd93f9","--od-h6":"#f1fa8c","--od-link":"#8be9fd","--od-link-hover":"#ff79c6","--od-code-bg":"#44475a","--od-code-fg":"#ff5555","--od-pre-bg":"#1e1f29","--od-pre-border":"#44475a","--od-table-even":"#21222c","--od-table-odd":"#282a36","--od-table-th":"#44475a","--od-scrollbar-track":"#1e1f29","--od-scrollbar-thumb":"#44475a","--od-scrollbar-hover":"#6272a4","--od-mermaid-bg":"#1e1f29","--od-mermaid-border":"#44475a","--od-selection":"rgba(139, 233, 253, 0.25)","--od-mark-bg":"#4c4a22","--od-kbd-bg":"#44475a"}},"gruvbox-dark":{name:"Gruvbox Dark",isDark:!0,variables:{"--od-bg":"#282828","--od-fg":"#ebdbb2","--od-bg-alt":"#1d2021","--od-border":"#504945","--od-comment":"#928374","--od-h1":"#fb4934","--od-h2":"#83a598","--od-h3":"#b8bb26","--od-h4":"#d3869b","--od-h5":"#8ec07c","--od-h6":"#fabd2f","--od-link":"#83a598","--od-link-hover":"#8ec07c","--od-code-bg":"#3c3836","--od-code-fg":"#fb4934","--od-pre-bg":"#1d2021","--od-pre-border":"#3c3836","--od-table-even":"#1d2021","--od-table-odd":"#282828","--od-table-th":"#3c3836","--od-scrollbar-track":"#1d2021","--od-scrollbar-thumb":"#504945","--od-scrollbar-hover":"#665c54","--od-mermaid-bg":"#1d2021","--od-mermaid-border":"#3c3836","--od-selection":"rgba(131, 165, 152, 0.25)","--od-mark-bg":"#4c421e","--od-kbd-bg":"#3c3836"}},"gruvbox-light":{name:"Gruvbox Light",isDark:!1,variables:{"--od-bg":"#fbf1c7","--od-fg":"#3c3836","--od-bg-alt":"#f2e5bc","--od-border":"#d5c4a1","--od-comment":"#928374","--od-h1":"#cc241d","--od-h2":"#458588","--od-h3":"#98971a","--od-h4":"#b16286","--od-h5":"#689d6a","--od-h6":"#d79921","--od-link":"#458588","--od-link-hover":"#689d6a","--od-code-bg":"#ebdbb2","--od-code-fg":"#cc241d","--od-pre-bg":"#f2e5bc","--od-pre-border":"#d5c4a1","--od-table-even":"#f2e5bc","--od-table-odd":"#fbf1c7","--od-table-th":"#ebdbb2","--od-scrollbar-track":"#f2e5bc","--od-scrollbar-thumb":"#bdae93","--od-scrollbar-hover":"#a89984","--od-mermaid-bg":"#faf3d6","--od-mermaid-border":"#d5c4a1","--od-selection":"rgba(69, 133, 136, 0.2)","--od-mark-bg":"#fedba8","--od-kbd-bg":"#ebdbb2"}}}}};const t={};let e=function e(n){const r=t[n];if(void 0!==r)return r.exports;const a=t[n]={exports:{}};return o[n].call(a.exports,a,a.exports,e),a.exports}(156);const n=exports;for(var r in e)n[r]=e[r];e.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"id": "org.joplin.plugin.theme-studio",
|
|
4
4
|
"app_min_version": "2.8.0",
|
|
5
5
|
"name": "Theme Studio",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.2.0",
|
|
7
7
|
"description": "All-in-one multi-palette engine (Tokyo Night, Everforest, Catppuccin, Nord, Dracula, Gruvbox, Atom One) with native RTL/LTR typography & mobile support.",
|
|
8
8
|
"author": "Yashar",
|
|
9
9
|
"homepage_url": "https://github.com/xyasharx/joplin-plugin-theme-studio",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"mobile",
|
|
34
34
|
"mermaid"
|
|
35
35
|
],
|
|
36
|
-
"_publish_hash": "sha256:
|
|
37
|
-
"_publish_commit": "
|
|
36
|
+
"_publish_hash": "sha256:6af85be05259fbb54d4d14a147d321a8ce1b172265069d26eeca46b1c1cdc850",
|
|
37
|
+
"_publish_commit": "9d7e28aa67db9aea604e4b26c10eb331d3ccfeb6"
|
|
38
38
|
}
|