joplin-plugin-copy-as-html 1.0.18 → 1.1.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/LICENSE.txt +21 -0
- package/README.md +7 -1
- package/package.json +13 -2
- package/publish/com.bwat47.copyashtml.jpl +0 -0
- package/publish/com.bwat47.copyashtml.json +71 -13
package/LICENSE.txt
ADDED
|
@@ -0,0 +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
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ This will strip markdown formatting characters, backslash escapes, and image emb
|
|
|
39
39
|
|
|
40
40
|
List leaders and nested list indentation will be maintained (these are normally lost when copying from the markdown viewer or rich text editor).
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
The following options are provided to preserve specific markdown formatting in the text/plain output:
|
|
43
43
|
|
|
44
44
|
- Preserve superscript characters `(^TEST^)`
|
|
45
45
|
If enabled, `^TEST^` will remain `^TEST^` in plain text output.
|
|
@@ -56,6 +56,12 @@ If enabled, `**TEST*`* or `__TEST__` will remain as-is in plain text output.
|
|
|
56
56
|
- Preserve heading characters `(## TEST)`
|
|
57
57
|
If enabled, `## TEST` will remain as-is in plain text output.
|
|
58
58
|
|
|
59
|
+
- Preserve highlight characters `(==TEST==)`
|
|
60
|
+
If enabled, `==TEST==` will remain as-is in plain text output.
|
|
61
|
+
|
|
62
|
+
- Preserve insert characters `(++TEST++)`
|
|
63
|
+
If enabled, `++TEST++` will remain as-is in plain text output.
|
|
64
|
+
|
|
59
65
|
As of version 1.0.15, the following options are provided for external hyperlinks (only impacts markdown links containing http/https URL):
|
|
60
66
|
|
|
61
67
|
- Title - Displays link title only (default).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-copy-as-html",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.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",
|
|
@@ -31,7 +31,18 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@joplin/renderer": "^3.3.1",
|
|
33
33
|
"jsdom": "^26.1.0",
|
|
34
|
+
"markdown-it": "^14.1.0",
|
|
35
|
+
"markdown-it-abbr": "^2.0.0",
|
|
36
|
+
"markdown-it-deflist": "^3.0.0",
|
|
37
|
+
"markdown-it-emoji": "^3.0.0",
|
|
38
|
+
"markdown-it-footnote": "^4.0.0",
|
|
34
39
|
"markdown-it-ins": "^4.0.0",
|
|
35
|
-
"markdown-it-mark": "^4.0.0"
|
|
40
|
+
"markdown-it-mark": "^4.0.0",
|
|
41
|
+
"markdown-it-multimd-table": "^4.2.3",
|
|
42
|
+
"markdown-it-sub": "^2.0.0",
|
|
43
|
+
"markdown-it-sup": "^2.0.0",
|
|
44
|
+
"markdown-it-task-lists": "^2.1.1",
|
|
45
|
+
"markdown-it-toc-done-right": "^4.2.0",
|
|
46
|
+
"string-width": "^7.2.0"
|
|
36
47
|
}
|
|
37
48
|
}
|
|
Binary file
|
|
@@ -2,17 +2,51 @@
|
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"id": "com.bwat47.copyashtml",
|
|
4
4
|
"app_min_version": "3.3",
|
|
5
|
-
"version": "1.0
|
|
5
|
+
"version": "1.1.0",
|
|
6
6
|
"name": "Copy as HTML",
|
|
7
|
-
"description": "Allows you to copy text with HTML (rich text) formatting from the markdown editor without
|
|
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",
|
|
9
9
|
"homepage_url": "https://github.com/bwat47/joplin-copy-as-html",
|
|
10
10
|
"repository_url": "https://github.com/bwat47/joplin-copy-as-html",
|
|
11
|
-
"keywords": [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
"keywords": [
|
|
12
|
+
"Copy",
|
|
13
|
+
"HTML",
|
|
14
|
+
"Text",
|
|
15
|
+
"Images",
|
|
16
|
+
"Image"
|
|
17
|
+
],
|
|
18
|
+
"categories": [
|
|
19
|
+
"productivity"
|
|
20
|
+
],
|
|
21
|
+
"screenshots": [
|
|
22
|
+
{
|
|
23
|
+
"src": "images/copy-as-html1.png",
|
|
24
|
+
"label": "Copy as HTML example 1"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"src": "images/copy-as-html2.png",
|
|
28
|
+
"label": "Copy as HTML example 2"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"src": "images/copy-as-plain1.png",
|
|
32
|
+
"label": "Copy as Plain Text example 1"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"src": "images/copy-as-plain2.png",
|
|
36
|
+
"label": "Copy as Plain Text example 2"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"icons": {
|
|
40
|
+
"16": "images/16.png",
|
|
41
|
+
"32": "images/32.png",
|
|
42
|
+
"48": "images/48.png",
|
|
43
|
+
"64": "images/64.png",
|
|
44
|
+
"128": "images/128.png"
|
|
45
|
+
},
|
|
46
|
+
"promo_tile": {
|
|
47
|
+
"src": "images/copyashtml_promo_tile.png",
|
|
48
|
+
"label": "Copy as HTML Promo Tile"
|
|
49
|
+
},
|
|
16
50
|
"settings": {
|
|
17
51
|
"embedImages": {
|
|
18
52
|
"type": "bool",
|
|
@@ -20,6 +54,12 @@
|
|
|
20
54
|
"description": "If enabled, images in selection will be embedded as base64.",
|
|
21
55
|
"value": true
|
|
22
56
|
},
|
|
57
|
+
"exportFullHtml": {
|
|
58
|
+
"type": "bool",
|
|
59
|
+
"label": "Export as full HTML document",
|
|
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
|
+
"value": false
|
|
62
|
+
},
|
|
23
63
|
"preserveSuperscript": {
|
|
24
64
|
"type": "bool",
|
|
25
65
|
"label": "Preserve superscript characters (^TEST^)",
|
|
@@ -50,18 +90,36 @@
|
|
|
50
90
|
"description": "If enabled, ## TEST will remain as-is in plain text output.",
|
|
51
91
|
"value": false
|
|
52
92
|
},
|
|
93
|
+
"preserveStrikethrough": {
|
|
94
|
+
"type": "bool",
|
|
95
|
+
"label": "Preserve strikethrough characters (~~TEST~~)",
|
|
96
|
+
"description": "If enabled, ~~TEST~~ will remain as-is in plain text output.",
|
|
97
|
+
"value": false
|
|
98
|
+
},
|
|
99
|
+
"preserveHorizontalRule": {
|
|
100
|
+
"type": "bool",
|
|
101
|
+
"label": "Preserve horizontal rule (---)",
|
|
102
|
+
"description": "If enabled, horizontal rules will be preserved as --- in plain text output.",
|
|
103
|
+
"value": false
|
|
104
|
+
},
|
|
53
105
|
"preserveMark": {
|
|
54
106
|
"type": "bool",
|
|
55
|
-
"label": "Preserve ==
|
|
56
|
-
"description": "If enabled, ==
|
|
107
|
+
"label": "Preserve highlight characters (==TEST==)",
|
|
108
|
+
"description": "If enabled, ==TEST== will remain as-is in plain text output.",
|
|
57
109
|
"value": false
|
|
58
110
|
},
|
|
59
111
|
"preserveInsert": {
|
|
60
112
|
"type": "bool",
|
|
61
|
-
"label": "Preserve
|
|
62
|
-
"description": "If enabled, ++
|
|
113
|
+
"label": "Preserve insert characters (++TEST++)",
|
|
114
|
+
"description": "If enabled, ++TEST++ will remain as-is in plain text output.",
|
|
63
115
|
"value": false
|
|
64
116
|
},
|
|
117
|
+
"displayEmojis": {
|
|
118
|
+
"type": "bool",
|
|
119
|
+
"label": "Display emojis",
|
|
120
|
+
"description": "If enabled, emojis will be displayed in the plain text output.",
|
|
121
|
+
"value": true
|
|
122
|
+
},
|
|
65
123
|
"hyperlinkBehavior": {
|
|
66
124
|
"type": "enum",
|
|
67
125
|
"label": "Plain Text hyperlink behavior",
|
|
@@ -74,6 +132,6 @@
|
|
|
74
132
|
"value": "title"
|
|
75
133
|
}
|
|
76
134
|
},
|
|
77
|
-
"_publish_hash": "sha256:
|
|
78
|
-
"_publish_commit": "main:
|
|
135
|
+
"_publish_hash": "sha256:0332aa07456ed137d6f166da4c2e00a4e06c9f3750e5910034bac5ea81763bea",
|
|
136
|
+
"_publish_commit": "main:3869b85f0653e4622b9a53e0da3d3231e682dd7c"
|
|
79
137
|
}
|