joplin-plugin-copy-as-html 1.3.2 → 1.4.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
|
@@ -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).
|
|
@@ -77,6 +79,10 @@ The plugin will adhere to Joplin's settings for whether or not to render:
|
|
|
77
79
|
> [!note]
|
|
78
80
|
> Mermaid/Math are not supported, they will render as plain text (code).
|
|
79
81
|
|
|
82
|
+
### Freehand Drawing/Excalidraw
|
|
83
|
+
|
|
84
|
+
These embed the drawings as joplin image resources (svg), and the plugin will embed them as base64 as it does other images. SVG images may have compatibility issues with certain editors (conversion to bitmap images is not currently supported).
|
|
85
|
+
|
|
80
86
|
#### Github Alerts
|
|
81
87
|
|
|
82
88
|
Github Alert syntax, (e.g. `>[!NOTE]`) is supported via the markdown-it-github-alerts plugin. In order for github alerts to be rendered nicely, you must be using the Full document mode with CSS styling targeting the .markdown-alert classes. The default [stylesheet](https://github.com/bwat47/joplin-copy-as-html/blob/main/src/defaultStylesheet.ts) contains styling for github alerts, example:
|
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.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,39 +19,39 @@
|
|
|
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": "^
|
|
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
|
-
"copy-webpack-plugin": "^
|
|
36
|
-
"eslint": "^9.
|
|
35
|
+
"copy-webpack-plugin": "^13.0.1",
|
|
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",
|
|
40
|
-
"fs-extra": "^11.3.
|
|
40
|
+
"fs-extra": "^11.3.2",
|
|
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",
|
|
48
48
|
"ts-loader": "^9.3.1",
|
|
49
|
-
"typescript": "^
|
|
50
|
-
"webpack": "^5.
|
|
51
|
-
"webpack-cli": "^
|
|
49
|
+
"typescript": "^5.9.3",
|
|
50
|
+
"webpack": "^5.102.1",
|
|
51
|
+
"webpack-cli": "^6.0.1"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"dompurify": "^3.
|
|
54
|
+
"dompurify": "^3.3.0",
|
|
55
55
|
"markdown-it": "^14.1.0",
|
|
56
56
|
"markdown-it-abbr": "^2.0.0",
|
|
57
57
|
"markdown-it-anchor": "^9.2.0",
|
|
@@ -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.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",
|
|
@@ -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:deb3075e0469912c7616a101f22c5f312776c4eb872eb046731cd6caa0e31e92",
|
|
158
|
+
"_publish_commit": "main:3f6bf8e3bfa8b7a8d43ae310cec87a10715ae0af"
|
|
153
159
|
}
|