joplin-plugin-collapsible-blocks 1.0.2 → 1.0.4

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
@@ -1,10 +1,10 @@
1
- # Joplin Plugin - Collapsible block
1
+ # Joplin Plugin - Collapsible blocks
2
2
 
3
3
  This Joplin plugin allows you to create collapsible blocks with a title and extendable body. The blocks can be nested within each other, remember whether they were left open or closed, and color-coordinate between the editor and webview.
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.0.4
8
8
 
9
9
  ## Installation
10
10
 
@@ -81,6 +81,24 @@ Blocks will remember if you left them opened or closed. They will do so by editi
81
81
 
82
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.
83
83
 
84
+ ## Screenshots
85
+
86
+ Three collapsibles, with one nested inside another, all closed
87
+
88
+ ![](screenshots/1.png)
89
+
90
+ With the two outer ones opened
91
+
92
+ ![](screenshots/2.png)
93
+
94
+ With all three opened
95
+
96
+ ![](screenshots/3.png)
97
+
98
+ With a fourth one added, for three nesting levels, and webview colors enabled
99
+
100
+ ![](screenshots/4.png)
101
+
84
102
  ## Custom styles
85
103
 
86
104
  If you would like to style the collapsible blocks to your preference, use the following in your `userstyle.css` file, which can be accessed in `Joplin` → `Options` → `Appearance` → `Show Advanced Settings` → `Custom stylesheet for rendered Markdown`:
@@ -111,7 +129,7 @@ be applied if "Do Webview Colors" is enabled in the plugin settings */
111
129
  ```
112
130
 
113
131
  ## Settings
114
- There is a settings page for the plugin in the Joplin options. There, you can customize the start and end tokens away from the default `:{` and `}:`, or enable/disable the color coding in the webview and editor.
132
+ There is a settings page for the plugin in the Joplin options. There, you can customize the start and end tokens away from the default `:{` and `}:`, or enable/disable the color coding in the webview and editor. You can also disable the plugin's ability to remember if a collapsible block was last left open or closed in the webview, relying solely on how you define it in the editor.
115
133
 
116
134
  ## Notes
117
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-collapsible-blocks",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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,23 +2,28 @@
2
2
  "manifest_version": 1,
3
3
  "id": "joplin.plugin.collapsible.blocks",
4
4
  "app_min_version": "3.2",
5
- "version": "1.0.2",
5
+ "version": "1.0.4",
6
6
  "name": "Collapsible blocks",
7
7
  "description": "Create collapsible blocks with title and extendable body.",
8
- "author": "",
9
- "homepage_url": "",
10
- "repository_url": "",
8
+ "author": "ntczkjfg",
9
+ "homepage_url": "https://github.com/ntczkjfg/joplin-plugin-collapsible-block",
10
+ "repository_url": "https://github.com/ntczkjfg/joplin-plugin-collapsible-block",
11
11
  "keywords": [
12
12
  "joplin",
13
13
  "plugin",
14
+ "collapse",
14
15
  "collapsible",
16
+ "collapsing",
15
17
  "blocks",
16
- "details"
18
+ "details",
19
+ "fold",
20
+ "foldable",
21
+ "folding"
17
22
  ],
18
23
  "platforms": [
19
24
  "desktop",
20
25
  "mobile"
21
26
  ],
22
- "_publish_hash": "sha256:ccf379dd745170125a19c46f91a47327d1cf176896c6d9e1a312b46387043939",
23
- "_publish_commit": "master:9be6e21c4d322133b1320c71d8ec534cc66ce640"
27
+ "_publish_hash": "sha256:fc09f9f5d39a1d56575ac9b04aaa9e1b8cbceea2329586d55e60c5f8b6cbd9b0",
28
+ "_publish_commit": "master:973d5e18d64fcfff259539fa59b18d888c27a6e4"
24
29
  }