joplin-plugin-html-blocks 1.0.9 → 1.2.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/README.md
CHANGED
|
@@ -12,10 +12,16 @@ Card contents, with the usual **markdown** you'd expect.
|
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
...renders as a light blue card in the note viewer, in exported HTML and in PDF
|
|
15
|
-
exports.
|
|
15
|
+
exports. 371 block types are included, in 33 categories: cards in eleven styles,
|
|
16
16
|
admonition-style callouts, twenty-two list styles, steps, timelines, stat tiles,
|
|
17
17
|
progress bars, ratings, tables, pros and cons, FAQs, feature grids, chat
|
|
18
|
-
transcripts, grids, banners, collapsible sections
|
|
18
|
+
transcripts, grids, banners, collapsible sections - plus charts (columns, bars,
|
|
19
|
+
pie, donut, line, area, gauges), flow charts and trees, button rows, ASCII and
|
|
20
|
+
big-text art, and a set of CSS animations.
|
|
21
|
+
|
|
22
|
+
Charts and diagrams are drawn in plain CSS - no script, no images, no external
|
|
23
|
+
libraries - so they render the same in the viewer, in the picker preview and in
|
|
24
|
+
a PDF export, and they follow your Joplin theme like everything else.
|
|
19
25
|
|
|
20
26
|
## Screenshots
|
|
21
27
|
|
|
@@ -66,8 +72,9 @@ what Joplin actually draws.
|
|
|
66
72
|
|
|
67
73
|
Most blocks treat their contents as ordinary markdown. The list-like ones
|
|
68
74
|
(`list_*`, `steps`, `timeline`, `stats`, `progress`, `rating`, `keyvalue`,
|
|
69
|
-
`
|
|
70
|
-
as one item** instead, and split
|
|
75
|
+
`table_*`, `pros_cons`, `faq_*`, `features_*`, `chat`, `badges`, `chart_*`,
|
|
76
|
+
`flow*`, `tree*`, `buttons*`) treat **one line as one item** instead, and split
|
|
77
|
+
fields on `::`:
|
|
71
78
|
|
|
72
79
|
```
|
|
73
80
|
!!! steps How it works
|
|
@@ -149,7 +156,12 @@ pairs each one with its markdown. The categories are:
|
|
|
149
156
|
| Quotes | 5 | `quote_box`, `quote_pull`, `quote_card` |
|
|
150
157
|
| Collapsible | 7 | `details`, `details_open`, `faq_list` |
|
|
151
158
|
| Badges & tags | 5 | `badges`, `badges_tags`, `badges_square` |
|
|
152
|
-
| Tables & data |
|
|
159
|
+
| Tables & data | 18 | `keyvalue`, `table`, `table_matrix` |
|
|
160
|
+
| Charts | 18 | `chart_column`, `chart_pie`, `chart_line` |
|
|
161
|
+
| Diagrams | 9 | `flow`, `flow_down`, `tree` |
|
|
162
|
+
| Buttons & links | 7 | `buttons`, `buttons_pill`, `buttons_cta` |
|
|
163
|
+
| ASCII & text art | 17 | `ascii_art`, `big_text`, `text_gradient` |
|
|
164
|
+
| Animations | 15 | `anim_fade`, `anim_typewriter`, `anim_marquee` |
|
|
153
165
|
|
|
154
166
|
Most ids read the way they look: `<family>_<theme>_<colour>`. The short,
|
|
155
167
|
memorable ones are aliased - `info`, `tip`, `warning`, `note`, `quote`,
|
|
@@ -173,6 +185,13 @@ memorable ones are aliased - `info`, `tip`, `warning`, `note`, `quote`,
|
|
|
173
185
|
| `badges` | split on commas and newlines |
|
|
174
186
|
| `list_*` | one item per line; `[x]` / `[ ]` for checkboxes, two spaces to nest |
|
|
175
187
|
| `grid_*`, `columns_*` | markdown cells split on a `---` line |
|
|
188
|
+
| `chart_*` | `label :: value` - `1,200`, `1.2k`, `85%` and `7/10` all read as numbers |
|
|
189
|
+
| `flow*` | `node :: caption` - one node per line, arrows drawn between them |
|
|
190
|
+
| `tree*` | one entry per line, two spaces to nest, `name :: note` |
|
|
191
|
+
| `buttons*` | `label :: https://... :: note`; a leading emoji becomes the icon |
|
|
192
|
+
| `table_matrix` | `yes` / `no` / `partly` in a cell become a tick, a cross or a tilde |
|
|
193
|
+
| `ascii_*` | kept exactly as typed - every space and blank line survives |
|
|
194
|
+
| `big_text` | one line of text per banner, spelled out in block letters |
|
|
176
195
|
|
|
177
196
|
## Editor highlighting
|
|
178
197
|
|
|
@@ -222,12 +241,17 @@ around it looks like). The two are independent - any theme works on any mode:
|
|
|
222
241
|
|
|
223
242
|
* `mode`: `card`, `callout`, `plain`, `quote`, `details`, `grid`, `list`,
|
|
224
243
|
`steps`, `timeline`, `stats`, `progress`, `rating`, `badges`, `keyvalue`,
|
|
225
|
-
`table`, `compare`, `faq`, `feature`, `chat
|
|
244
|
+
`table`, `compare`, `faq`, `feature`, `chat`, `chart`, `flow`, `tree`,
|
|
245
|
+
`buttons`, `art`, `bigtext`.
|
|
226
246
|
* `theme`: `soft` (the default), `solid`, `outline`, `gradient`, `elevated`,
|
|
227
247
|
`glass`, `neon`, `minimal`, `ribbon`, `dashed`, `underline`.
|
|
228
248
|
|
|
229
|
-
The remaining fields (`icon`, `defaultTitle`, `variant`, `
|
|
230
|
-
`columns`, `bare`, `open`, `aliases`) are documented in
|
|
249
|
+
The remaining fields (`icon`, `defaultTitle`, `variant`, `chart`, `animation`,
|
|
250
|
+
`listStyle`, `ordered`, `columns`, `bare`, `open`, `aliases`) are documented in
|
|
251
|
+
`src/blocks/types.ts`. `chart` picks which chart a `chart` block draws (`column`,
|
|
252
|
+
`bar`, `pie`, `donut`, `line`, `area`, `gauge`, `stack`) and `animation` adds one
|
|
253
|
+
of the motion presets - all of which switch themselves off again for readers with
|
|
254
|
+
`prefers-reduced-motion` set.
|
|
231
255
|
|
|
232
256
|
## Building
|
|
233
257
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-html-blocks",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Write styled HTML sections - cards, callouts, fancy lists, steps, timelines, grids and more - using a simple `!!! type` ... `!!!->` markdown fence.",
|
|
5
5
|
"author": "madusanka",
|
|
6
6
|
"scripts": {
|
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"id": "com.madusanka.htmlBlocks",
|
|
4
|
-
"app_min_version": "3.
|
|
5
|
-
"app_min_version_mobile": "3.
|
|
4
|
+
"app_min_version": "3.1.0",
|
|
5
|
+
"app_min_version_mobile": "3.2.0",
|
|
6
6
|
"platforms": [
|
|
7
7
|
"desktop",
|
|
8
8
|
"mobile"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.0
|
|
10
|
+
"version": "1.2.0",
|
|
11
11
|
"name": "HTML Blocks",
|
|
12
12
|
"description": "Write styled HTML sections - cards, callouts, fancy lists, steps, timelines, grids and more - using a simple `!!! type` ... `!!!->` markdown fence.",
|
|
13
13
|
"author": "madusanka",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"src": "images/promo_tile.png",
|
|
50
50
|
"label": "HTML Blocks - styled cards, callouts and lists from a simple markdown fence"
|
|
51
51
|
},
|
|
52
|
-
"_publish_hash": "sha256:
|
|
53
|
-
"_publish_commit": "main:
|
|
52
|
+
"_publish_hash": "sha256:e630df4c140770d24725da9006a03add9f1970f06ab8bddef7d24a7cff5c493b",
|
|
53
|
+
"_publish_commit": "main:955360b5ed8bfe364d1a5939ee58ed4e0c7b2911"
|
|
54
54
|
}
|