Skip to content

Commit

Permalink
Merge pull request #766 from pjkaufman/master
Browse files Browse the repository at this point in the history
Release Prep
  • Loading branch information
pjkaufman authored Jun 19, 2023
2 parents 3619608 + 8530987 commit ae0f42f
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 7 deletions.
117 changes: 112 additions & 5 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,99 @@ There should not be any empty lines between list markers and checklists.



Example:
Example: Blank lines are removed between ordered list items

Before:

``````markdown
1. Item 1

2. Item 2
``````

After:

``````markdown
1. Item 1
2. Item 2
``````
Example: Blank lines are removed between list items when the list indicator is '-'

Before:

``````markdown
- Item 1

- Subitem 1

- Item 2
``````

After:

``````markdown
- Item 1
- Subitem 1
- Item 2
``````
Example: Blank lines are removed between checklist items

Before:

``````markdown
- [x] Item 1

- [!] Subitem 1

- [ ] Item 2
``````

After:

``````markdown
- [x] Item 1
- [!] Subitem 1
- [ ] Item 2
``````
Example: Blank lines are removed between list items when the list indicator is '+'

Before:

``````markdown
+ Item 1

+ Subitem 1

+ Item 2
``````

After:

``````markdown
+ Item 1
+ Subitem 1
+ Item 2
``````
Example: Blank lines are removed between list items when the list indicator is '*'

Before:

``````markdown
* Item 1

* Subitem 1

* Item 2
``````

After:

``````markdown
* Item 1
* Subitem 1
* Item 2
``````
Example: Blanks lines are removed between like list types (ordered, specific list item indicators, and checklists) while blanks are left between different kinds of list item indicators

Before:

Expand All @@ -3644,7 +3736,7 @@ Before:

- [x] Item 1

- [ ] Subitem 1
- [f] Subitem 1

- [ ] Item 2

Expand Down Expand Up @@ -3672,7 +3764,7 @@ After:
- Item 2

- [x] Item 1
- [ ] Subitem 1
- [f] Subitem 1
- [ ] Item 2

+ Item 1
Expand Down Expand Up @@ -4157,7 +4249,7 @@ After:
- [ ] Checklist item contents here
More content here
``````
Example: Line being pasted into a blockquote with a checklist indicator is has its checklist indicator removed when current line is: `> - [x] `
Example: Line being pasted into a blockquote with a checklist indicator has its checklist indicator removed when current line is: `> - [x] `

Before:

Expand All @@ -4172,7 +4264,22 @@ After:
Checklist item contents here
More content here
``````
Example: Line being pasted with a checklist indicator is has its checklist indicator removed when current line is: `- [ ] `
Example: Line being pasted with a checklist indicator has its checklist indicator removed when current line is: `- [ ] `

Before:

``````markdown
- [x] Checklist item 1
- [ ] Checklist item 2
``````

After:

``````markdown
Checklist item 1
- [ ] Checklist item 2
``````
Example: Line being pasted as a checklist indicator has its checklist indicator removed when current line is: `- [!] `

Before:

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-linter",
"name": "Linter",
"version": "1.15.2",
"version": "1.16.0",
"minAppVersion": "0.15.6",
"description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.",
"author": "Victor Tao",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-linter",
"version": "1.15.2",
"version": "1.16.0",
"description": "Enforces consistent markdown styling for Obsidian (https://obsidian.md). It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.",
"main": "main.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.16.0": "0.15.6",
"1.15.2": "0.15.6",
"1.15.1": "0.15.6",
"1.15.0": "0.15.6",
Expand Down

0 comments on commit ae0f42f

Please sign in to comment.