joplin-plugin-copy-as-html 1.3.1 → 1.3.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/README.md CHANGED
@@ -13,6 +13,9 @@ The primary use case is copying text from Joplin and pasting formatted text into
13
13
 
14
14
  This will populate the clipboard's text/html category with the HTML formatted text.
15
15
 
16
+ > [!NOTE]
17
+ > In Joplin 3.5.4 and newer, it will populate both text/html and text/plain (allowing you to paste either formatted or plain text).
18
+
16
19
  ### Embed images as base64
17
20
 
18
21
  By default, the plugin will embed any images as base64 in the text/html output, allowing you paste text + images into external applications. However, this can be disabled in the plugin's settings.
@@ -74,6 +77,10 @@ The plugin will adhere to Joplin's settings for whether or not to render:
74
77
  > [!note]
75
78
  > Mermaid/Math are not supported, they will render as plain text (code).
76
79
 
80
+ ### Freehand Drawing/Excalidraw
81
+
82
+ 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).
83
+
77
84
  #### Github Alerts
78
85
 
79
86
  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:
@@ -131,8 +138,3 @@ Copy as Plain Text supports the markdown-it emoji plugin, so emoji such as :whit
131
138
 
132
139
  - 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.
133
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).
134
-
135
- ## Misc
136
-
137
- > [!NOTE]
138
- > I originally wanted to implement a single action that populated both the text/html and the text/plain clipboard categories (allowing you to seamlessly paste as rich text or plain text), but this currently doesn't seem possible due limitations with joplin's clipboard API. The joplin clipboard API doesn't appear to allow writing both text/html and text/plain at the same time... you only get one or the other (if I'm wrong about this, please let me know!)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-copy-as-html",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
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",
@@ -27,17 +27,17 @@
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": "^18.7.13",
31
- "@typescript-eslint/eslint-plugin": "^8.46.0",
32
- "@typescript-eslint/parser": "^8.46.0",
30
+ "@types/node": "^24.7.2",
31
+ "@typescript-eslint/eslint-plugin": "^8.46.1",
32
+ "@typescript-eslint/parser": "^8.46.1",
33
33
  "babel-jest": "^30.2.0",
34
34
  "chalk": "^4.1.0",
35
- "copy-webpack-plugin": "^11.0.0",
35
+ "copy-webpack-plugin": "^13.0.1",
36
36
  "eslint": "^9.37.0",
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.1",
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",
@@ -46,12 +46,12 @@
46
46
  "tar": "^6.1.11",
47
47
  "ts-jest": "^29.4.5",
48
48
  "ts-loader": "^9.3.1",
49
- "typescript": "^4.8.2",
50
- "webpack": "^5.74.0",
51
- "webpack-cli": "^4.10.0"
49
+ "typescript": "^5.9.3",
50
+ "webpack": "^5.102.1",
51
+ "webpack-cli": "^6.0.1"
52
52
  },
53
53
  "dependencies": {
54
- "dompurify": "^3.2.7",
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",
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.3.1",
5
+ "version": "1.3.3",
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",
@@ -148,6 +148,6 @@
148
148
  "value": "spaces"
149
149
  }
150
150
  },
151
- "_publish_hash": "sha256:4091d325bf425e77cd8532c6b17fcc7e4bdc1e6f356e0f614bbb65570988e929",
152
- "_publish_commit": "main:6066e151d9a6b1038b9eb41aef487ce958d69ba4"
151
+ "_publish_hash": "sha256:33afa3e533bfb65635bb6e9d035ad3c96c8602695bd483124b8c07d56ce39f79",
152
+ "_publish_commit": "main:0d4dae455a8f9c01b9cef1ae3c4ed03eb3da365d"
153
153
  }