joplin-plugin-copy-as-html 1.3.3 → 1.4.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
|
@@ -7,6 +7,8 @@ This plugin allows you to copy selected text in the markdown editor as either HT
|
|
|
7
7
|
|
|
8
8
|
The primary use case is copying text from Joplin and pasting formatted text into other apps that support HTML formatting (e.g. pasting text into an Outlook email). A plain text fallback is provided for scenarios where you need to paste text into an application that supports neither HTML formatting nor markdown.
|
|
9
9
|
|
|
10
|
+

|
|
11
|
+
|
|
10
12
|
## Copy as HTML
|
|
11
13
|
|
|
12
14
|
"Copy selection as HTML" is provided as a right click context menu option and as a keyboard shortcut (ctrl + shift + c by default).
|
|
@@ -79,7 +81,9 @@ The plugin will adhere to Joplin's settings for whether or not to render:
|
|
|
79
81
|
|
|
80
82
|
### Freehand Drawing/Excalidraw
|
|
81
83
|
|
|
82
|
-
These embed the drawings as joplin image resources (svg), and the plugin will embed them as base64 as it does other images.
|
|
84
|
+
These plugins embed the drawings as joplin image resources (svg), and the plugin will embed them as base64 as it does other images.
|
|
85
|
+
|
|
86
|
+
SVG images may have compatibility issues with certain editors/email clients, so by default the plugin will convert svg images to png when embedding images, however this can be disabled in the plugin settings.
|
|
83
87
|
|
|
84
88
|
#### Github Alerts
|
|
85
89
|
|
|
@@ -137,4 +141,3 @@ Copy as Plain Text supports the markdown-it emoji plugin, so emoji such as :whit
|
|
|
137
141
|
## Known Issues
|
|
138
142
|
|
|
139
143
|
- The plugin's keyboard shortcuts sometimes don't work on cold start of Joplin, can be fixed by toggling editors or going to Tools | Options | Keyboard Shortcuts and back.
|
|
140
|
-
- When using the "Full Document" mode for custom css styling, the full HTML document will be nested under another `<html>`/`<body>` in the clipboard. I don't think there's a way to fix this without having access to electron clipboard API. Nested html/body (while not technically valid HTML) is the best solution I found (doesn't seem to cause issues pasting into other apps and is the same thing that the obsidian copy document as html plugin does).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-copy-as-html",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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",
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"publish"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@babel/core": "^7.28.
|
|
23
|
-
"@babel/preset-env": "^7.28.
|
|
22
|
+
"@babel/core": "^7.28.5",
|
|
23
|
+
"@babel/preset-env": "^7.28.5",
|
|
24
24
|
"@eslint/eslintrc": "^3.3.1",
|
|
25
|
-
"@eslint/js": "^9.
|
|
25
|
+
"@eslint/js": "^9.39.1",
|
|
26
26
|
"@types/dompurify": "^3.0.5",
|
|
27
27
|
"@types/jest": "^30.0.0",
|
|
28
28
|
"@types/jsdom": "^27.0.0",
|
|
29
29
|
"@types/markdown-it": "^14.1.2",
|
|
30
|
-
"@types/node": "^24.
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.46.
|
|
32
|
-
"@typescript-eslint/parser": "^8.46.
|
|
30
|
+
"@types/node": "^24.10.0",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
32
|
+
"@typescript-eslint/parser": "^8.46.3",
|
|
33
33
|
"babel-jest": "^30.2.0",
|
|
34
34
|
"chalk": "^4.1.0",
|
|
35
35
|
"copy-webpack-plugin": "^13.0.1",
|
|
36
|
-
"eslint": "^9.
|
|
36
|
+
"eslint": "^9.39.1",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-plugin-import": "^2.32.0",
|
|
39
39
|
"eslint-plugin-prettier": "^5.5.4",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"glob": "^8.0.3",
|
|
42
42
|
"jest": "^30.2.0",
|
|
43
43
|
"jest-environment-jsdom": "^30.2.0",
|
|
44
|
-
"jsdom": "^27.
|
|
44
|
+
"jsdom": "^27.1.0",
|
|
45
45
|
"prettier": "^3.6.2",
|
|
46
46
|
"tar": "^6.1.11",
|
|
47
47
|
"ts-jest": "^29.4.5",
|
|
@@ -65,7 +65,10 @@
|
|
|
65
65
|
"markdown-it-sub": "^2.0.0",
|
|
66
66
|
"markdown-it-sup": "^2.0.0",
|
|
67
67
|
"markdown-it-table-of-contents": "^1.1.0",
|
|
68
|
-
"@mdit/plugin-tasklist": "^0.22.
|
|
68
|
+
"@mdit/plugin-tasklist": "^0.22.2",
|
|
69
69
|
"string-width": "^8.1.0"
|
|
70
|
+
},
|
|
71
|
+
"overrides": {
|
|
72
|
+
"parse5": "^7.3.0"
|
|
70
73
|
}
|
|
71
74
|
}
|
|
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.
|
|
5
|
+
"version": "1.4.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",
|
|
@@ -66,6 +66,12 @@
|
|
|
66
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
67
|
"value": false
|
|
68
68
|
},
|
|
69
|
+
"embedSvgAsPng": {
|
|
70
|
+
"type": "bool",
|
|
71
|
+
"label": "Convert SVG images to PNG",
|
|
72
|
+
"description": "If enabled, embedded SVG images will be rasterized as PNG to improve compatibility with applications that cannot display inline SVG.",
|
|
73
|
+
"value": true
|
|
74
|
+
},
|
|
69
75
|
"preserveSuperscript": {
|
|
70
76
|
"type": "bool",
|
|
71
77
|
"label": "Preserve superscript characters (^TEST^)",
|
|
@@ -148,6 +154,6 @@
|
|
|
148
154
|
"value": "spaces"
|
|
149
155
|
}
|
|
150
156
|
},
|
|
151
|
-
"_publish_hash": "sha256:
|
|
152
|
-
"_publish_commit": "main:
|
|
157
|
+
"_publish_hash": "sha256:c1e3d64209a4c9d034987704b6f8643ab89968a3b04e86f96da09d298a9ae7b1",
|
|
158
|
+
"_publish_commit": "main:647d3ea010cf0a83a8a8d18794d3f243f1f79210"
|
|
153
159
|
}
|