joplin-plugin-copy-as-html 1.6.7 → 1.7.1

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
@@ -46,10 +46,7 @@ To use custom CSS, create `copy-as-html-user.css` in your Joplin profile directo
46
46
 
47
47
  ### Markdown rendering
48
48
 
49
- HTML output follows Joplin's Markdown rendering settings, including options such as footnotes, highlighting, and tables.
50
-
51
- <details>
52
- <summary>Supported optional Markdown settings</summary>
49
+ HTML output follows Joplin's Markdown rendering settings, supporting the following:
53
50
 
54
51
  - Soft Breaks
55
52
  - Typographer
@@ -64,27 +61,30 @@ HTML output follows Joplin's Markdown rendering settings, including options such
64
61
  - Markdown Emoji
65
62
  - Insert (`++Insert++`)
66
63
  - Multimarkdown Table
67
-
68
- </details>
64
+ - Mermaid Diagrams
65
+ - Math
66
+ - ABC Musical Notation
69
67
 
70
68
  ## Plain text options
71
69
 
72
70
  Plain text output removes Markdown formatting markers and images while preserving paragraphs, list markers, nested list indentation, readable tables, footnotes, and link text. It parses Markdown independently of Joplin's HTML rendering settings.
73
71
 
74
- | Setting | Default | Options |
75
- | ----------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------- |
76
- | Plain text hyperlink behavior | Link Title | Keep link text, show the URL, or preserve Markdown link formatting. Applies to Markdown links with HTTP/HTTPS URLs. |
77
- | List indentation type | 4 Spaces | Indent nested lists with four spaces or tabs. |
78
- | List spacing | Loose | Loose adds blank lines between list items; Tight omits them. |
79
- | Display emojis | On | Converts emoji shortcodes such as `:white_check_mark:` to Unicode (✅). |
80
- | Preserve table pipes | Off | Retains Markdown pipe separators in tables. |
72
+ | Setting | Default | Options |
73
+ | ----------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------- |
74
+ | Plain text hyperlink behavior | Link Title | Keep link text, show the URL, or preserve Markdown link formatting. Applies to Markdown links with HTTP/HTTPS URLs. |
75
+ | List indentation type | 4 Spaces | Indent nested lists with four spaces or tabs. |
76
+ | List spacing | Loose | Loose adds blank lines between list items; Tight omits them. |
77
+ | Convert emoji shortcodes | On | Converts emoji shortcodes such as `:white_check_mark:` to Unicode (✅) when enabled; leaves shortcodes unchanged when disabled. |
78
+ | Preserve table pipes | Off | Retains Markdown pipe separators in tables. |
81
79
 
82
80
  You can also preserve superscript, subscript, emphasis, bold, heading, quote, strikethrough, highlight, and insert markers, horizontal rules, and code backticks. These options are off by default and appear when you enable **Show advanced settings** in the plugin's settings section.
83
81
 
84
82
  ## Limitations
85
83
 
86
84
  - Commands work on selected text in the Markdown editor. They do not work in the rich text editor or Markdown viewer.
87
- - Mermaid diagrams and math are not rendered; they are copied as plain text.
85
+ - Math is rendered as images with [MathJax](https://www.mathjax.org/) when copying as HTML, so it may look slightly different from Joplin's viewer. Math MathJax cannot render is copied as its TeX source. Plain text copies keep the TeX source.
86
+ - Mermaid diagrams are rendered as images with [Pele](https://github.com/obsidianmd/pele) when copying as HTML, so they may look different from Joplin's viewer. Diagrams Pele cannot render are copied as code. Plain text copies keep the diagram source.
87
+ - ABC music notation is rendered as images with [abcjs](https://www.abcjs.net/) when copying as HTML. Notation abcjs cannot render is copied as code. Plain text copies keep the ABC source.
88
88
  - HTML styling and embedded image support depend on the destination app.
89
89
 
90
90
  > [!NOTE]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-copy-as-html",
3
- "version": "1.6.7",
3
+ "version": "1.7.1",
4
4
  "scripts": {
5
5
  "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
6
6
  "prepare": "npm run dist",
@@ -21,32 +21,39 @@
21
21
  ],
22
22
  "devDependencies": {
23
23
  "@eslint/js": "^10.0.1",
24
+ "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
25
+ "@swc/core": "^1.16.21",
24
26
  "@types/jsdom": "^30.0.0",
25
- "@types/mdast": "^4.0.4",
26
27
  "@types/node": "^25.9.4",
27
- "@vitest/eslint-plugin": "^1.6.27",
28
+ "@vitest/eslint-plugin": "^1.6.28",
28
29
  "chalk": "^4.1.0",
29
30
  "copy-webpack-plugin": "^14.0.0",
30
- "eslint": "^10.12.0",
31
+ "eslint": "^10.14.0",
31
32
  "eslint-config-prettier": "^10.1.8",
32
33
  "eslint-plugin-sonarjs": "^4.2.2",
34
+ "eslint-plugin-tsdoc": "^0.5.4",
33
35
  "fs-extra": "^11.3.2",
34
36
  "glob": "^8.0.3",
35
37
  "globals": "^14.0.0",
36
38
  "jsdom": "^30.1.2",
37
- "knip": "^6.40.0",
38
- "prettier": "^3.9.9 ",
39
+ "knip": "^6.44.1",
40
+ "prettier": "^3.9.10 ",
39
41
  "tar": "^7.5.7",
42
+ "terser-webpack-plugin": "^5.5.0",
40
43
  "ts-loader": "^9.5.7",
41
44
  "typescript": "^6.0.3",
42
- "typescript-eslint": "^8.71.1",
43
- "vitest": "^5.0.0",
45
+ "typescript-eslint": "8.72.1",
46
+ "vitest": "^5.1.0",
44
47
  "webpack": "^5.103.0",
45
48
  "webpack-cli": "^6.0.1"
46
49
  },
47
50
  "dependencies": {
51
+ "@mathjax/mathjax-mhchem-font-extension": "^4.1.3",
52
+ "@mathjax/mathjax-tex-font": "^4.1.3",
53
+ "@mathjax/src": "^4.1.3",
54
+ "abcjs": "^6.7.2",
48
55
  "dompurify": "^3.4.16",
49
- "node-emoji": "^2.2.0",
56
+ "pele": "^1.13.0",
50
57
  "remark-emoji": "^5.0.2",
51
58
  "remark-flexible-markers": "^1.3.4",
52
59
  "remark-gfm": "^4.0.1",
@@ -55,5 +62,10 @@
55
62
  "remark-supersub": "^1.0.0",
56
63
  "string-width": "^8.3.0",
57
64
  "unified": "^11.0.5"
65
+ },
66
+ "overrides": {
67
+ "eslint-plugin-tsdoc": {
68
+ "@typescript-eslint/utils": "8.72.1"
69
+ }
58
70
  }
59
71
  }
Binary file
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 1,
3
3
  "id": "com.bwat47.copyashtml",
4
4
  "app_min_version": "3.5.11",
5
- "version": "1.6.7",
5
+ "version": "1.7.1",
6
6
  "name": "Copy as HTML",
7
7
  "description": "Allows you to copy text with HTML (rich text) formatting from the markdown editor (including images). Also allows you to copy as plain text (without markdown formatting)",
8
8
  "author": "bwat47",
@@ -48,6 +48,6 @@
48
48
  "src": "images/copyashtml_promo_tile.png",
49
49
  "label": "Copy as HTML Promo Tile"
50
50
  },
51
- "_publish_hash": "sha256:ae49993ffb10462eaf9343af39b313c15c3c73db49ba1826a6b1beaab84b2c6b",
52
- "_publish_commit": "main:a02aa0c010289b4863fb344282691ff3388b49d3"
51
+ "_publish_hash": "sha256:cd461939721657e74d317662fe144a47c5dc486e10ccef9b9767653fd48135d0",
52
+ "_publish_commit": "main:0928a4c676410ca362947c7b195d6fdd0bb59ba4"
53
53
  }
@@ -1 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */