joplin-plugin-enhanced-rendering 0.0.0-stage → 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bwat47
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,50 @@
1
- # Temporary Holding Version
1
+ > [!note]
2
+ > This plugin is developed with AI assistance
2
3
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
4
+ # Enhanced Rendering
5
+
6
+ Render Mermaid diagrams (via [Pele](https://github.com/obsidianmd/pele)) and inline/block math (via [KaTeX](https://katex.org/)) directly in Joplin's CodeMirror 6 Markdown editor.
7
+
8
+ ![example screenshot](https://github.com/bwat47/joplin-enhanced-rendering/blob/main/images/example.png)
9
+
10
+ ## Requirements
11
+
12
+ - Joplin 3.7 or newer
13
+ - Markdown editor using CodeMirror 6
14
+
15
+ ## Installation
16
+
17
+ Install from Joplin's plugin manager, or install the `.jpl` file manually:
18
+
19
+ 1. Download `com.bwat47.joplin-enhanced-rendering.jpl` from the latest release.
20
+ 2. In Joplin, open `Tools > Options > Plugins`.
21
+ 3. Select `Install from file`.
22
+ 4. Restart Joplin if prompted.
23
+
24
+ ## Notes
25
+
26
+ - This plugin changes editor display only. It does not modify note content.
27
+
28
+ - Math rendering requires "Enable math expressions (wysiwyg: yes)" to be enabled under Tools | Options | Markdown (otherwise the syntax tree nodes for math aren't available in the editor).
29
+
30
+ - Mermaid diagrams can appear differently than in the Markdown viewer due to the different library being used to render them.
31
+
32
+ ## Development
33
+
34
+ Requires Node 22 or later.
35
+
36
+ ```bash
37
+ npm ci
38
+ npm test
39
+ npm run lint
40
+ npm run dist
41
+ ```
42
+
43
+ Browser tests run the extension in a real CodeMirror editor using headless Chromium:
44
+
45
+ ```bash
46
+ npx playwright install chromium
47
+ npm run test:browser
48
+ ```
49
+
50
+ `npm run dist` creates the installable plugin at `publish/com.bwat47.joplin-enhanced-rendering.jpl`.
package/package.json CHANGED
@@ -1,6 +1,57 @@
1
1
  {
2
- "name": "joplin-plugin-enhanced-rendering",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "joplin-plugin-enhanced-rendering",
3
+ "version": "0.2.0",
4
+ "scripts": {
5
+ "dist": "npm run typecheck && joplin-plugin-scripts build",
6
+ "prepare": "npm run dist",
7
+ "updateVersion": "joplin-plugin-scripts update-version",
8
+ "updateApi": "joplin-plugin-scripts update-api",
9
+ "lint": "oxlint src/ && npm run lint:dead-code && npm run lint:complexity",
10
+ "lint:dead-code": "fallow dead-code",
11
+ "lint:complexity": "fallow health --complexity",
12
+ "lint:fix": "oxlint src/ --fix",
13
+ "format": "oxfmt --write",
14
+ "format:check": "oxfmt --check",
15
+ "test": "vitest run --passWithNoTests",
16
+ "test:watch": "vitest",
17
+ "test:browser": "vitest run --config vitest.browser.config.mts",
18
+ "test:browser:watch": "vitest --config vitest.browser.config.mts --browser.headless=false",
19
+ "typecheck": "tsc --noEmit"
20
+ },
21
+ "license": "MIT",
22
+ "engines": {
23
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
24
+ },
25
+ "keywords": [
26
+ "joplin-plugin"
27
+ ],
28
+ "files": [
29
+ "publish"
30
+ ],
31
+ "devDependencies": {
32
+ "@bwat47/joplin-plugin-scripts": "^1.7.0",
33
+ "@codemirror/commands": "6.10.3",
34
+ "@codemirror/lang-markdown": "6.5.0",
35
+ "@codemirror/language": "6.12.3",
36
+ "@codemirror/state": "6.7.1",
37
+ "@codemirror/view": "6.43.14",
38
+ "@lezer/common": "1.5.2",
39
+ "@lezer/markdown": "1.8.1",
40
+ "@types/katex": "^0.16.8",
41
+ "@types/node": "^24.19.2",
42
+ "@vitest/browser-playwright": "^5.1.0",
43
+ "fallow": "^3.43.0",
44
+ "jsdom": "^31.0.0",
45
+ "oxfmt": "^0.78.0",
46
+ "oxlint": "^1.93.0",
47
+ "oxlint-tsgolint": "^7.0.2007",
48
+ "playwright": "^1.65.0",
49
+ "typescript": "^7.0.2",
50
+ "vite": "^8.3.8",
51
+ "vitest": "^5.1.0"
52
+ },
53
+ "dependencies": {
54
+ "katex": "^0.19.1",
55
+ "pele": "^1.13.0"
56
+ }
57
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "id": "com.bwat47.joplin-enhanced-rendering",
4
+ "app_min_version": "3.7",
5
+ "version": "0.2.0",
6
+ "platforms": [
7
+ "desktop",
8
+ "mobile"
9
+ ],
10
+ "name": "Enhanced Rendering",
11
+ "description": "Render Mermaid diagrams and KaTeX math directly in Joplin's Markdown editor",
12
+ "author": "bwat47",
13
+ "homepage_url": "https://github.com/bwat47/joplin-enhanced-rendering",
14
+ "repository_url": "https://github.com/bwat47/joplin-enhanced-rendering",
15
+ "keywords": [
16
+ "editor",
17
+ "markdown",
18
+ "mermaid",
19
+ "katex",
20
+ "math",
21
+ "live-preview"
22
+ ],
23
+ "categories": [
24
+ "appearance",
25
+ "editor"
26
+ ],
27
+ "screenshots": [
28
+ {
29
+ "src": "images/mermaid.png",
30
+ "label": "Mermaid rendering"
31
+ },
32
+ {
33
+ "src": "images/math.png",
34
+ "label": "Math rendering"
35
+ }
36
+ ],
37
+ "promo_tile": {
38
+ "src": "images/promo_tile.png",
39
+ "label": "Enhanced Rendering Promo Tile"
40
+ },
41
+ "_publish_hash": "sha256:327a1d5bcb374c17cbdc639e0152f848d5feac5a44cc23fda76bd84565e0208f",
42
+ "_publish_commit": "main:bd85965dc4e09ebcba0da9a38d0fbb421072beee"
43
+ }