joplin-plugin-copy-as-html 1.1.14 → 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
@@ -19,6 +19,10 @@ By default, the plugin will embed any images as base64 in the text/html output,
19
19
 
20
20
  This will work with both markdown image embeds and the html `<img>` embeds that you get when resizing images via joplin's rich text editor.
21
21
 
22
+ ### Download and embed remote images as base64
23
+
24
+ If you enable this option (along with "Embed images as base64"), remote image embeds will be downloaded and embedded as base64 (making the images viewable without internet access).
25
+
22
26
  ### Export as fragment or full HTML document
23
27
 
24
28
  When you copy text from Joplin's markdown viewer (or export the note to HTML), there is a lot of styling applied which can sometimes cause issues pasting text into other editors (e.g. if you copy from the markdown viewer, your joplin theme's background color may be pasted).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-copy-as-html",
3
- "version": "1.1.14",
3
+ "version": "1.2.0",
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",
@@ -19,6 +19,8 @@
19
19
  "publish"
20
20
  ],
21
21
  "devDependencies": {
22
+ "@babel/core": "^7.28.4",
23
+ "@babel/preset-env": "^7.28.3",
22
24
  "@eslint/eslintrc": "^3.3.1",
23
25
  "@eslint/js": "^9.34.0",
24
26
  "@types/dompurify": "^3.0.5",
@@ -26,16 +28,17 @@
26
28
  "@types/jsdom": "^21.1.7",
27
29
  "@types/markdown-it": "^14.1.2",
28
30
  "@types/node": "^18.7.13",
29
- "@typescript-eslint/eslint-plugin": "^8.40.0",
30
- "@typescript-eslint/parser": "^8.40.0",
31
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
32
+ "@typescript-eslint/parser": "^8.42.0",
33
+ "babel-jest": "^30.1.2",
31
34
  "chalk": "^4.1.0",
32
35
  "copy-webpack-plugin": "^11.0.0",
33
- "eslint": "^9.34.0",
36
+ "eslint": "^9.35.0",
34
37
  "eslint-config-prettier": "^10.1.8",
35
38
  "eslint-plugin-prettier": "^5.5.4",
36
- "fs-extra": "^10.1.0",
39
+ "fs-extra": "^11.3.1",
37
40
  "glob": "^8.0.3",
38
- "jest": "^30.0.5",
41
+ "jest": "^30.1.3",
39
42
  "jsdom": "^26.1.0",
40
43
  "prettier": "^3.6.2",
41
44
  "tar": "^6.1.11",
@@ -49,10 +52,11 @@
49
52
  "dompurify": "^3.2.6",
50
53
  "markdown-it": "^14.1.0",
51
54
  "markdown-it-abbr": "^2.0.0",
55
+ "markdown-it-anchor": "^9.2.0",
52
56
  "markdown-it-deflist": "^3.0.0",
53
57
  "markdown-it-emoji": "^3.0.0",
54
58
  "markdown-it-footnote": "^4.0.0",
55
- "markdown-it-github-alerts": "^0.2.0",
59
+ "markdown-it-github-alerts": "^1.0.0",
56
60
  "markdown-it-ins": "^4.0.0",
57
61
  "markdown-it-mark": "^4.0.0",
58
62
  "markdown-it-multimd-table": "^4.2.3",
@@ -60,6 +64,6 @@
60
64
  "markdown-it-sup": "^2.0.0",
61
65
  "markdown-it-task-lists": "^2.1.1",
62
66
  "markdown-it-toc-done-right": "^4.2.0",
63
- "string-width": "^7.2.0"
67
+ "string-width": "^8.1.0"
64
68
  }
65
69
  }
Binary file
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 1,
3
3
  "id": "com.bwat47.copyashtml",
4
4
  "app_min_version": "3.3",
5
- "version": "1.1.14",
5
+ "version": "1.2.0",
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",
@@ -60,6 +60,12 @@
60
60
  "description": "If enabled, exported HTML will be a full document with your custom stylesheet (copy-as-html-user.css in your profile folder).",
61
61
  "value": false
62
62
  },
63
+ "downloadRemoteImages": {
64
+ "type": "bool",
65
+ "label": "Download and embed remote images",
66
+ "description": "If enabled (along with Embed images as base64), remote HTTP/HTTPS images will be downloaded and embedded as base64. If un-checked, the resulting document may contain links to external resources.",
67
+ "value": false
68
+ },
63
69
  "preserveSuperscript": {
64
70
  "type": "bool",
65
71
  "label": "Preserve superscript characters (^TEST^)",
@@ -142,6 +148,6 @@
142
148
  "value": "spaces"
143
149
  }
144
150
  },
145
- "_publish_hash": "sha256:9a8a2a1f76b57c7cae686571517c08e8218a14f27885aba284faedfe2ade5152",
146
- "_publish_commit": "main:a4456bdd6c304965d31f47d69e532c2679cd56b2"
151
+ "_publish_hash": "sha256:279d4f528113c032f9f5a9fba6f8efde6cbbbe8c7c6de30d1fa2b7e8d45c89c3",
152
+ "_publish_commit": "main:12aa9c2e0682e11efd233a78cf8b595eb3d00279"
147
153
  }