joplin-plugin-markdown-formatter 1.0.0 → 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
@@ -1,3 +1,9 @@
1
+ > [!NOTE]
2
+ > This plugin was created entirely with AI tools.
3
+
4
+ > [!NOTE]
5
+ > This plugin only works in the Markdown editor.
6
+
1
7
  # Markdown Formatter
2
8
 
3
9
  A Joplin plugin that formats the current note's Markdown with configurable, conservative rules.
@@ -13,10 +19,12 @@ understand is left alone.
13
19
  - Normalize unordered list markers to `-` or `*`.
14
20
  - Renumber ordered lists sequentially while preserving the first item's number.
15
21
  - Normalize emphasis and bold delimiters.
22
+ - Normalize heading levels so they increase by at most one level at a time.
16
23
  - Preserve, tighten (when list doesn't contain block content), or loosen list spacing.
17
24
  - Normalize nested list indentation with tabs, 2 spaces, or 4 spaces.
18
25
  - Normalize Horizontal rule format and spacing above/below.
19
26
  - Optionally align GitHub Flavored Markdown tables.
27
+ - Ensure headings have a blank line before and after neighboring content.
20
28
  - Collapse repeated blank lines outside protected content.
21
29
  - Ensure the note ends with exactly one trailing newline.
22
30
  - Apply changes through CodeMirror so formatting is undoable with Joplin's normal undo command.
@@ -29,7 +37,7 @@ Install the plugin, open a Markdown note, then run:
29
37
  - `Ctrl+Alt+F` on Windows/Linux
30
38
  - `Cmd+Alt+F` on macOS
31
39
 
32
- The command formats the selected note body. If the note is already formatted, it does not write the note
40
+ The command formats the currently open note. If the note is already formatted, it does not write the note
33
41
  back.
34
42
 
35
43
  ## Settings
@@ -40,11 +48,13 @@ Settings are available under `Markdown Formatter` in Joplin's plugin settings.
40
48
  | -------------------------------- | ------------------- | ----------------------------------------------------------------------- |
41
49
  | Unordered list marker | `-` | Rewrite unordered bullets to dash or asterisk. |
42
50
  | Normalize ordered list numbering | On | Renumber ordered lists sequentially, keeping the first item number. |
51
+ | Normalize heading level increments | On | Lower skipped heading levels so headings increase one level at a time. |
43
52
  | Emphasis (italic) marker | `*emphasis*` | Prefer `*` or `_` for emphasis delimiters. |
44
53
  | Bold marker | `**bold**` | Prefer `**` or `__` for strong delimiters. |
45
54
  | List spacing | Preserve as written | Preserve, tighten, or loosen spacing between list items. |
46
55
  | List indentation | Tabs | Indentation used before nested list markers. |
47
56
  | Align table columns | Off | Pad table cells so pipes line up. |
57
+ | Ensure blank lines around headings | On | Add one blank line before and after headings with neighboring content. |
48
58
  | Collapse consecutive blank lines | On | Reduce runs of blank lines to one blank line outside protected content. |
49
59
  | Ensure trailing newline | On | End the note with exactly one newline. |
50
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-markdown-formatter",
3
- "version": "1.0.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",
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 1,
3
3
  "id": "com.bwat47.joplin-markdown-formatter",
4
4
  "app_min_version": "3.5",
5
- "version": "1.0.0",
5
+ "version": "1.1.0",
6
6
  "platforms": [
7
7
  "desktop",
8
8
  "mobile"
@@ -29,6 +29,6 @@
29
29
  "src": "images/markdown-formatter-promo.png",
30
30
  "label": "Markdown Formatter Promo Tile"
31
31
  },
32
- "_publish_hash": "sha256:f8488bb81828de4f3d33183208baf1b3e0c03e3326137d2b582633f6de3481e5",
33
- "_publish_commit": "main:5616e2ef5f0dee3562f19b010e56a82969fc393f"
32
+ "_publish_hash": "sha256:dc50b70fcec22acb9114fbef93c491970838730fb887e34bded2d227f43f56e6",
33
+ "_publish_commit": "main:7c2746ef5c9a396bb0b2b7af6258abafd85d8878"
34
34
  }