joplin-plugin-copy-as-html 1.0.6 → 1.0.9
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
|
@@ -24,7 +24,7 @@ This should work with both markdown image embeds and the html img src embeds tha
|
|
|
24
24
|
|
|
25
25
|
### Optional markdown syntax
|
|
26
26
|
|
|
27
|
-
The plugin will adhere to Joplin's settings for:
|
|
27
|
+
The plugin will adhere to Joplin's settings for whether or not to render:
|
|
28
28
|
|
|
29
29
|
- Soft Breaks
|
|
30
30
|
- ^sup^
|
|
@@ -37,6 +37,23 @@ The plugin will adhere to Joplin's settings for:
|
|
|
37
37
|
|
|
38
38
|
This will strip the markdown formatting characters from the raw markdown (except for numbered/unordered list markers) and populate it as text/plain in the clipboard, for scenarios where you need to paste into an app that supports neither HTML formatting or markdown.
|
|
39
39
|
|
|
40
|
+
As of version 1.0.8, the following options are provided to maintain specific markdown formatting in the plain text output:
|
|
41
|
+
|
|
42
|
+
- Preserve superscript characters `(^TEST^)`
|
|
43
|
+
If enabled, `^TEST^` will remain `^TEST^` in plain text output.
|
|
44
|
+
|
|
45
|
+
- Preserve subscript characters `(~TEST~)`
|
|
46
|
+
If enabled, `~TEST~` will remain `~TEST~` in plain text output.
|
|
47
|
+
|
|
48
|
+
- Preserve emphasis characters `(*TEST* or _TEST_)`
|
|
49
|
+
If enabled, `*TEST*` or `_TEST_` will remain as-is in plain text output.
|
|
50
|
+
|
|
51
|
+
- Preserve bold characters `(**TEST** or __TEST__)`
|
|
52
|
+
If enabled, `**TEST*`* or `__TEST__` will remain as-is in plain text output.
|
|
53
|
+
|
|
54
|
+
- Preserve heading characters `(## TEST)`
|
|
55
|
+
If enabled, `## TEST` will remain as-is in plain text output.
|
|
56
|
+
|
|
40
57
|
## Known Issues
|
|
41
58
|
|
|
42
59
|
- The context menu options appear in the rich text editor's context menu (but aren't functional, the plugin is only intended for the markdown editor).
|
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.0.9",
|
|
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",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@joplin/renderer": "^3.3.1",
|
|
31
|
-
"jsdom": "^26.1.0"
|
|
32
|
-
"remove-markdown": "^0.6.2"
|
|
31
|
+
"jsdom": "^26.1.0"
|
|
33
32
|
}
|
|
34
33
|
}
|
|
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.0.
|
|
5
|
+
"version": "1.0.9",
|
|
6
6
|
"name": "Copy as HTML",
|
|
7
7
|
"description": "Allows you to copy text with HTML (rich text) formatting from the markdown editor without excess styling.",
|
|
8
8
|
"author": "bwat47",
|
|
@@ -19,8 +19,38 @@
|
|
|
19
19
|
"label": "Embed images as base64",
|
|
20
20
|
"description": "If enabled, images in selection will be embedded as base64.",
|
|
21
21
|
"value": true
|
|
22
|
+
},
|
|
23
|
+
"preserveSuperscript": {
|
|
24
|
+
"type": "bool",
|
|
25
|
+
"label": "Preserve superscript characters (^TEST^)",
|
|
26
|
+
"description": "If enabled, ^TEST^ will remain ^TEST^ in plain text output.",
|
|
27
|
+
"value": false
|
|
28
|
+
},
|
|
29
|
+
"preserveSubscript": {
|
|
30
|
+
"type": "bool",
|
|
31
|
+
"label": "Preserve subscript characters (~TEST~)",
|
|
32
|
+
"description": "If enabled, ~TEST~ will remain ~TEST~ in plain text output.",
|
|
33
|
+
"value": false
|
|
34
|
+
},
|
|
35
|
+
"preserveEmphasis": {
|
|
36
|
+
"type": "bool",
|
|
37
|
+
"label": "Preserve emphasis characters (*TEST* or _TEST_)",
|
|
38
|
+
"description": "If enabled, *TEST* or _TEST_ will remain as-is in plain text output.",
|
|
39
|
+
"value": false
|
|
40
|
+
},
|
|
41
|
+
"preserveBold": {
|
|
42
|
+
"type": "bool",
|
|
43
|
+
"label": "Preserve bold characters (**TEST** or __TEST__)",
|
|
44
|
+
"description": "If enabled, **TEST** or __TEST__ will remain as-is in plain text output.",
|
|
45
|
+
"value": false
|
|
46
|
+
},
|
|
47
|
+
"preserveHeading": {
|
|
48
|
+
"type": "bool",
|
|
49
|
+
"label": "Preserve heading characters (## TEST)",
|
|
50
|
+
"description": "If enabled, ## TEST will remain as-is in plain text output.",
|
|
51
|
+
"value": false
|
|
22
52
|
}
|
|
23
53
|
},
|
|
24
|
-
"_publish_hash": "sha256:
|
|
25
|
-
"_publish_commit": "main:
|
|
54
|
+
"_publish_hash": "sha256:9b231b4e6d85f92f499a7b1db9d748f3403037d3d1d959eae1c89157dc77bf80",
|
|
55
|
+
"_publish_commit": "main:bbd069747fe146c977c8cd410d0b1c46db291617"
|
|
26
56
|
}
|