joplin-plugin-rich-tables 1.0.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 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 ADDED
@@ -0,0 +1,42 @@
1
+ # Rich Tables
2
+
3
+ A Joplin plugin to provide table rendering & table editing in the Markdown editor.
4
+
5
+ ![example](https://github.com/user-attachments/assets/e16608bf-ec86-4083-b47a-bab0d15e6f9e)
6
+
7
+ ## Features
8
+
9
+ ### Table Rendering
10
+
11
+ Tables are rendered as HTML in the markdown editor, allowing you to see the HTML formatted table without using the markdown viewer.
12
+
13
+ Table rendering includes rendering of inline markdown and image embeds.
14
+
15
+ ### Table Editing
16
+
17
+ Provides table editing from the rendered HTML table similar to the Rich text editor. The following operations are supported:
18
+
19
+ - Editing table cells
20
+ - Adding/Deleting rows
21
+ - Adding/Deleting columns
22
+ - Changing column alignment (left/center/right)
23
+ - Format table (currently just normalizes whitespace to one space around cell content, no full-on pretty formatting currently).
24
+
25
+ ### Important Notes/Limitations
26
+
27
+ #### Table limitations
28
+
29
+ - Only supports markdown tables (GFM). Doesn't support HTML tables, multi-markdown table extensions, etc...
30
+ - No support for multi-line content (unless you manually enter `<br>` tags)
31
+
32
+ #### Editing limitations
33
+
34
+ In order to provide table editing, the plugin uses a nested codemirror editor subview. Because of this, the following limitations are present:
35
+
36
+ - Keyboard shortcuts are limited when editing table cells (only basics like ctrl +c, ctrl + v, ctrl + z, ctrl +x)
37
+
38
+ - Formatting functions from joplin's formatting toolbar will not work properly.
39
+
40
+ - Cell editing is plaintext only (markdown will not be rendered until you leave the cell).
41
+
42
+ - No context menu when editing cells
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "joplin-plugin-rich-tables",
3
+ "version": "1.0.0",
4
+ "scripts": {
5
+ "dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
6
+ "prepare": "npm run dist",
7
+ "updateVersion": "webpack --env joplin-plugin-config=updateVersion",
8
+ "update": "npm install -g generator-joplin && yo joplin --node-package-manager npm --update --force",
9
+ "lint": "eslint --ext .ts src/",
10
+ "lint:fix": "eslint --ext .ts src/ --fix",
11
+ "format": "prettier --write \"src/**/*.ts\"",
12
+ "test": "jest --passWithNoTests",
13
+ "test:watch": "jest --watch"
14
+ },
15
+ "license": "MIT",
16
+ "keywords": [
17
+ "joplin-plugin"
18
+ ],
19
+ "files": [
20
+ "publish"
21
+ ],
22
+ "devDependencies": {
23
+ "@types/node": "^18.7.13",
24
+ "chalk": "^4.1.0",
25
+ "copy-webpack-plugin": "^11.0.0",
26
+ "fs-extra": "^10.1.0",
27
+ "glob": "^8.0.3",
28
+ "tar": "^6.1.11",
29
+ "ts-loader": "^9.3.1",
30
+ "typescript": "^4.8.2",
31
+ "webpack": "^5.74.0",
32
+ "webpack-cli": "^4.10.0"
33
+ },
34
+ "dependencies": {
35
+ "@codemirror/language": "^6.11.3",
36
+ "@codemirror/state": "^6.5.2",
37
+ "@codemirror/view": "^6.38.8",
38
+ "@codemirror/commands": "^6.10.0",
39
+ "@types/jest": "^30.0.0",
40
+ "@eslint/eslintrc": "^3.3.1",
41
+ "@eslint/js": "^9.39.1",
42
+ "@types/node": "^24.10.0",
43
+ "@typescript-eslint/eslint-plugin": "^8.46.3",
44
+ "@typescript-eslint/parser": "^8.46.3",
45
+ "chalk": "^4.1.0",
46
+ "copy-webpack-plugin": "^13.0.1",
47
+ "eslint": "^9.39.1",
48
+ "eslint-config-prettier": "^10.1.8",
49
+ "eslint-plugin-import": "^2.32.0",
50
+ "eslint-plugin-prettier": "^5.5.4",
51
+ "fs-extra": "^10.1.0",
52
+ "glob": "^8.0.3",
53
+ "jest": "^30.2.0",
54
+ "prettier": "^3.6.2",
55
+ "tar": "^6.1.11",
56
+ "ts-jest": "^29.4.6",
57
+ "ts-loader": "^9.3.1",
58
+ "typescript": "^5.9.3",
59
+ "webpack": "^5.102.1",
60
+ "webpack-cli": "^6.0.1"
61
+ }
62
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "manifest_version": 1,
3
+ "id": "com.bwat47.rich-tables",
4
+ "app_min_version": "3.3",
5
+ "version": "1.0.0",
6
+ "platforms": [
7
+ "desktop",
8
+ "mobile"
9
+ ],
10
+ "name": "Rich Tables",
11
+ "description": "A Joplin plugin to provide table rendering and table editing in the Markdown editor.",
12
+ "author": "bwat47",
13
+ "homepage_url": "https://github.com/bwat47/joplin-rich-tables",
14
+ "repository_url": "https://github.com/bwat47/joplin-rich-tables",
15
+ "keywords": [
16
+ "editor",
17
+ "tables",
18
+ "HTML",
19
+ "rich",
20
+ "table",
21
+ "markdown",
22
+ "rendering"
23
+ ],
24
+ "categories": [
25
+ "appearance",
26
+ "productivity",
27
+ "editor"
28
+ ],
29
+ "screenshots": [
30
+ {
31
+ "src": "images/screenshot1.png",
32
+ "label": "Rich Tables Screenshot 1"
33
+ }
34
+ ],
35
+ "icons": {
36
+ "16": "images/16.png",
37
+ "32": "images/32.png",
38
+ "48": "images/48.png",
39
+ "64": "images/64.png",
40
+ "128": "images/128.png"
41
+ },
42
+ "promo_tile": {
43
+ "src": "images/promo.png",
44
+ "label": "Rich Tables Promo Tile"
45
+ },
46
+ "_publish_hash": "sha256:1666e86e836132f7038222b8ea653e26cc18925f484f10cd2c8ee6e5c3f2d2f3",
47
+ "_publish_commit": "main:65d0215741ba8ef78f2db252911674d5aa145ac0"
48
+ }