joplin-plugin-copy-as-html 1.7.1 → 1.7.3
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.txt +20 -20
- package/README.md +10 -5
- package/package.json +27 -41
- package/publish/com.bwat47.copyashtml.jpl +0 -0
- package/publish/com.bwat47.copyashtml.json +52 -52
package/LICENSE.txt
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 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
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 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
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -27,16 +27,21 @@ Configure the plugin in Joplin's settings under **Copy as HTML**.
|
|
|
27
27
|
|
|
28
28
|
Local Joplin images are embedded as base64 by default, allowing you to paste text and images together. Both Markdown images and HTML `<img>` tags are supported.
|
|
29
29
|
|
|
30
|
-
| Setting | Default | Behavior
|
|
31
|
-
| -------------------------------- | ------- |
|
|
32
|
-
| Embed images as base64 | On | Embeds local Joplin images in the HTML. Turning this off removes local Joplin images from the output.
|
|
33
|
-
| Download and embed remote images | Off | Downloads and embeds remote HTTP/HTTPS images when image embedding is enabled. Otherwise, remote images remain linked to their original URLs.
|
|
34
|
-
| Convert SVG images to PNG | On | Converts embedded SVG images to PNG for compatibility with editors and email clients.
|
|
30
|
+
| Setting | Default | Behavior |
|
|
31
|
+
| -------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
32
|
+
| Embed images as base64 | On | Embeds local Joplin images in the HTML. Turning this off removes local Joplin images from the output. |
|
|
33
|
+
| Download and embed remote images | Off | Downloads and embeds remote HTTP/HTTPS images when image embedding is enabled. Otherwise, remote images remain linked to their original URLs. |
|
|
34
|
+
| Convert SVG images to PNG | On | Converts embedded SVG images to PNG for compatibility with editors and email clients. |
|
|
35
|
+
| PNG scale | 2× | Resolution of converted PNG images relative to the SVG size (`1×`, `2×`, `3×`, or `4×`). Only applies when **Convert SVG images to PNG** is enabled. |
|
|
35
36
|
|
|
36
37
|
Successfully embedded remote images can be viewed without internet access. If a download fails, the original image URL is retained.
|
|
37
38
|
|
|
39
|
+
To limit memory use, the PNG scale is automatically reduced for very large SVG images, so in rare cases they may be converted at a lower resolution than selected.
|
|
40
|
+
|
|
38
41
|
Drawings from Freehand Drawing, Excalidraw, and Drawio are supported when stored as Joplin image resources (embedded like any other image resource).
|
|
39
42
|
|
|
43
|
+
Mermaid Diagrams, Math, and ABC Music notation will be embedded as SVG images (or converted to PNG if Convert SVG Images to PNG is enabled).
|
|
44
|
+
|
|
40
45
|
### HTML fragment or full document
|
|
41
46
|
|
|
42
47
|
- **Default:** Copies an HTML fragment without an added stylesheet. The destination app determines its appearance.
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-copy-as-html",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"dist": "
|
|
5
|
+
"dist": "npm run typecheck && joplin-plugin-scripts build",
|
|
6
6
|
"prepare": "npm run dist",
|
|
7
|
-
"updateVersion": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"lint
|
|
11
|
-
"
|
|
7
|
+
"updateVersion": "joplin-plugin-scripts update-version",
|
|
8
|
+
"updateApi": "joplin-plugin-scripts update-api",
|
|
9
|
+
"typecheck": "tsc --noEmit",
|
|
10
|
+
"lint": "oxlint src/ && npm run lint:dead-code && npm run lint:complexity",
|
|
11
|
+
"lint:fix": "oxlint src/ --fix",
|
|
12
|
+
"format": "oxfmt --write",
|
|
13
|
+
"format:check": "oxfmt --check",
|
|
12
14
|
"test": "vitest run",
|
|
13
|
-
"
|
|
15
|
+
"lint:dead-code": "fallow dead-code",
|
|
16
|
+
"lint:complexity": "fallow health --complexity"
|
|
14
17
|
},
|
|
15
18
|
"license": "MIT",
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
21
|
+
},
|
|
16
22
|
"keywords": [
|
|
17
23
|
"joplin-plugin"
|
|
18
24
|
],
|
|
@@ -20,39 +26,24 @@
|
|
|
20
26
|
"publish"
|
|
21
27
|
],
|
|
22
28
|
"devDependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
25
|
-
"@swc/core": "^1.16.21",
|
|
29
|
+
"@bwat47/joplin-plugin-scripts": "^1.8.0",
|
|
26
30
|
"@types/jsdom": "^30.0.0",
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"glob": "^8.0.3",
|
|
37
|
-
"globals": "^14.0.0",
|
|
38
|
-
"jsdom": "^30.1.2",
|
|
39
|
-
"knip": "^6.44.1",
|
|
40
|
-
"prettier": "^3.9.10 ",
|
|
41
|
-
"tar": "^7.5.7",
|
|
42
|
-
"terser-webpack-plugin": "^5.5.0",
|
|
43
|
-
"ts-loader": "^9.5.7",
|
|
44
|
-
"typescript": "^6.0.3",
|
|
45
|
-
"typescript-eslint": "8.72.1",
|
|
46
|
-
"vitest": "^5.1.0",
|
|
47
|
-
"webpack": "^5.103.0",
|
|
48
|
-
"webpack-cli": "^6.0.1"
|
|
31
|
+
"@types/node": "^24.19.2",
|
|
32
|
+
"eslint-plugin-regexp": "^3.3.3",
|
|
33
|
+
"fallow": "^3.49.0",
|
|
34
|
+
"jsdom": "^31.0.1",
|
|
35
|
+
"oxfmt": "^0.80.0",
|
|
36
|
+
"oxlint": "^1.95.0",
|
|
37
|
+
"oxlint-tsgolint": "^7.0.2008",
|
|
38
|
+
"typescript": "^7.0.2",
|
|
39
|
+
"vitest": "^5.1.1"
|
|
49
40
|
},
|
|
50
41
|
"dependencies": {
|
|
51
42
|
"@mathjax/mathjax-mhchem-font-extension": "^4.1.3",
|
|
52
43
|
"@mathjax/mathjax-tex-font": "^4.1.3",
|
|
53
44
|
"@mathjax/src": "^4.1.3",
|
|
54
|
-
"abcjs": "^6.7.
|
|
55
|
-
"dompurify": "^3.
|
|
45
|
+
"abcjs": "^6.7.3",
|
|
46
|
+
"dompurify": "^3.5.0",
|
|
56
47
|
"pele": "^1.13.0",
|
|
57
48
|
"remark-emoji": "^5.0.2",
|
|
58
49
|
"remark-flexible-markers": "^1.3.4",
|
|
@@ -60,12 +51,7 @@
|
|
|
60
51
|
"remark-ins": "^1.2.4",
|
|
61
52
|
"remark-parse": "^11.0.0",
|
|
62
53
|
"remark-supersub": "^1.0.0",
|
|
63
|
-
"string-width": "^
|
|
54
|
+
"string-width": "^9.0.0",
|
|
64
55
|
"unified": "^11.0.5"
|
|
65
|
-
},
|
|
66
|
-
"overrides": {
|
|
67
|
-
"eslint-plugin-tsdoc": {
|
|
68
|
-
"@typescript-eslint/utils": "8.72.1"
|
|
69
|
-
}
|
|
70
56
|
}
|
|
71
57
|
}
|
|
Binary file
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"id": "com.bwat47.copyashtml",
|
|
4
|
+
"app_min_version": "3.5.11",
|
|
5
|
+
"version": "1.7.3",
|
|
6
|
+
"name": "Copy as HTML",
|
|
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
|
+
"author": "bwat47",
|
|
9
|
+
"homepage_url": "https://github.com/bwat47/joplin-copy-as-html",
|
|
10
|
+
"repository_url": "https://github.com/bwat47/joplin-copy-as-html",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"copy",
|
|
13
|
+
"html",
|
|
14
|
+
"text",
|
|
15
|
+
"images",
|
|
16
|
+
"image"
|
|
17
|
+
],
|
|
18
|
+
"categories": [
|
|
19
|
+
"productivity",
|
|
20
|
+
"editor"
|
|
21
|
+
],
|
|
22
|
+
"screenshots": [
|
|
23
|
+
{
|
|
24
|
+
"src": "images/copy-as-html1.png",
|
|
25
|
+
"label": "Copy as HTML example 1"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"src": "images/copy-as-html2.png",
|
|
29
|
+
"label": "Copy as HTML example 2"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"src": "images/copy-as-plain1.png",
|
|
33
|
+
"label": "Copy as Plain Text example 1"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"src": "images/copy-as-plain2.png",
|
|
37
|
+
"label": "Copy as Plain Text example 2"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"icons": {
|
|
41
|
+
"16": "images/16.png",
|
|
42
|
+
"32": "images/32.png",
|
|
43
|
+
"48": "images/48.png",
|
|
44
|
+
"64": "images/64.png",
|
|
45
|
+
"128": "images/128.png"
|
|
46
|
+
},
|
|
47
|
+
"promo_tile": {
|
|
48
|
+
"src": "images/copyashtml_promo_tile.png",
|
|
49
|
+
"label": "Copy as HTML Promo Tile"
|
|
50
|
+
},
|
|
51
|
+
"_publish_hash": "sha256:657a8a15d17a0252193b2bd41557f418117364185961614f19773917989aaa89",
|
|
52
|
+
"_publish_commit": "main:da4b72945ed11a587028c50699d735e855749bba"
|
|
53
|
+
}
|