joplin-plugin-collapsible-blocks 1.0.4 → 1.1.1

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.4
7
+ **Version**: 1.1.1
8
8
 
9
9
  ## Installation
10
10
 
@@ -77,9 +77,11 @@ 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 :{ to :{:{ when opened, or back to :{ when closed. You may also do this manually.
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
81
 
82
- 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.
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.
83
+
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 (enabled or disabled) in the plugin Settings tab.
83
85
 
84
86
  ## Screenshots
85
87
 
@@ -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.4",
3
+ "version": "1.1.1",
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",
@@ -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.4",
5
+ "version": "1.1.1",
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:fc09f9f5d39a1d56575ac9b04aaa9e1b8cbceea2329586d55e60c5f8b6cbd9b0",
28
- "_publish_commit": "master:973d5e18d64fcfff259539fa59b18d888c27a6e4"
27
+ "_publish_hash": "sha256:fbf839831057c09cc8fa0be61ce2d541fc8b382da0682521654956935537dbf7",
28
+ "_publish_commit": "master:34ddc194cdccadc35d73602e728aa4d49c8d32e8"
29
29
  }