joplin-plugin-collapsible-blocks 1.0.4 → 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/README.md
CHANGED
|
@@ -4,7 +4,7 @@ This Joplin plugin allows you to create collapsible blocks with a title and exte
|
|
|
4
4
|
|
|
5
5
|
Although the blocks this plugin creates are only collapsible in the webview, not the editor, it seems to pair well with the "Extra Markdown Editor Settings" plugin, which does allow for collapsing text in the editor, if "Enable code folding" is enabled in its settings. The collapsible blocks made by this plugin are detected by it as code, and are editor-foldable. If you're nesting collapsible blocks, only the outermost one (in the editor) will be foldable with this method.
|
|
6
6
|
|
|
7
|
-
**Version**: 1.0
|
|
7
|
+
**Version**: 1.1.0
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -77,7 +77,9 @@ Body
|
|
|
77
77
|
```
|
|
78
78
|
(for readability, the last way is recommended)
|
|
79
79
|
|
|
80
|
-
Blocks will remember if you left them opened or closed. They will do so by editing the opener in the editor from
|
|
80
|
+
Blocks will remember if you left them opened or closed. They will do so by editing the opener in the editor from `:{` to `:{:{` when opened, or back to `:{` when closed. You may also do this manually.
|
|
81
|
+
|
|
82
|
+
If you don't want it to remember if you left a block opened or closed, you can turn this off globally in the plugin settings - or on a per-block basis by doubling the end token, from `}:` to `}:}:`. When you do this, you can still open and close the block in the webview, but they will not save their state in the editor - so the next time the note is loaded, they will be opened or closed again, depending on whether their opening token is `:{:{` or `:{`, respectively. So a block like `:{:{this}:}:` will always be initially open when you open a note, while a block like `:{this}:}:` will always be initially closed when you open a note.
|
|
81
83
|
|
|
82
84
|
When nesting blocks within blocks, they will be color-coded in the editor, and may also be color-coded in the webview. These can both be controlled in the plugin Settings tab.
|
|
83
85
|
|
|
@@ -137,4 +139,8 @@ There is a settings page for the plugin in the Joplin options. There, you can cu
|
|
|
137
139
|
|
|
138
140
|
## Acknowledgement
|
|
139
141
|
|
|
140
|
-
Thanks to the creator of the [Joplin Spoilers](https://github.com/martinkorelic/joplin-plugin-spoilers) plugin, whose code helped me build this plugin.
|
|
142
|
+
Thanks to the creator of the [Joplin Spoilers](https://github.com/martinkorelic/joplin-plugin-spoilers) plugin, whose code helped me build this plugin.
|
|
143
|
+
|
|
144
|
+
## Other plugins
|
|
145
|
+
|
|
146
|
+
See my other plugin, [Click-to-Copy Spans](https://github.com/ntczkjfg/joplin-plugin-click-to-copy-span)! Easily lets you create spans of text that, when clicked, are automatically copied to your clipboard for fast and easy pasting.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joplin-plugin-collapsible-blocks",
|
|
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",
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"id": "joplin.plugin.collapsible.blocks",
|
|
4
4
|
"app_min_version": "3.2",
|
|
5
|
-
"version": "1.0
|
|
5
|
+
"version": "1.1.0",
|
|
6
6
|
"name": "Collapsible blocks",
|
|
7
7
|
"description": "Create collapsible blocks with title and extendable body.",
|
|
8
8
|
"author": "ntczkjfg",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"desktop",
|
|
25
25
|
"mobile"
|
|
26
26
|
],
|
|
27
|
-
"_publish_hash": "sha256:
|
|
28
|
-
"_publish_commit": "master:
|
|
27
|
+
"_publish_hash": "sha256:ac51faca341b542b7e392e1836100d4782fc7da6679287b92d61deebfd0a6209",
|
|
28
|
+
"_publish_commit": "master:3e839324698256c44f70f6c574f6af2d26787183"
|
|
29
29
|
}
|