Skip to content

Commit 4acd518

Browse files
authored
Merge pull request #1193 from pjkaufman/master
Release Prep
2 parents 145463a + 5fa2dbc commit 4acd518

File tree

10 files changed

+155
-32
lines changed

10 files changed

+155
-32
lines changed

docs/docs/settings/content-rules.md

Lines changed: 128 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
Alias: `auto-correct-common-misspellings`
1010

11-
Uses a dictionary of common misspellings to automatically convert them to their proper spellings. See [auto-correct map](https://github.com/platers/obsidian-linter/tree/master/src/utils/auto-correct-misspellings.ts) for the full list of auto-corrected words. **Note: this list can work on text from multiple languages, but this list is the same no matter what language is currently in use.**
11+
Uses a dictionary of common misspellings to automatically convert them to their proper spellings. See <a href="https://github.com/platers/obsidian-linter/tree/master/src/utils/default-misspellings.md">auto-correct map</a> for the full list of auto-corrected words. <b>Note: this list can work on text from multiple languages, but this list is the same no matter what language is currently in use.</b>
1212

1313
### Options
1414

1515
| Name | Description | List Items | Default Value |
1616
| ---- | ----------- | ---------- | ------------- |
1717
| `Ignore Words` | A comma separated list of lowercased words to ignore when auto-correcting | N/A | |
1818
| `Skip Words with Multiple Capitals` | Will skip any files that have a capital letter in them other than as the first letter of the word. Acronyms and some other words can benefit from this. It may cause issues with proper nouns being properly fixed. | N/A | false |
19-
| `Extra Auto-Correct Source Files` | These are files that have a markdown table in them that have the initial word and the word to correct it to (these are case insensitive corrections). **Note: the tables used should have the starting and ending `|` indicators present for each line.** | N/A | |
19+
| `Extra Auto-Correct Source Files` | These are files that have a markdown table in them that have the initial word and the word to correct it to (these are case insensitive corrections). <b>Note: the tables used should have the starting and ending <code>\|</code> indicators present for each line.</b> | N/A | |
2020

2121
### Additional Info
2222

@@ -281,7 +281,7 @@ Add a default language to code fences that do not have a language specified.
281281

282282
| Name | Description | List Items | Default Value |
283283
| ---- | ----------- | ---------- | ------------- |
284-
| `Programming Language` | Leave empty to do nothing. Languages tags can be found [here](https://prismjs.com/#supported-languages). | N/A | |
284+
| `Programming Language` | Leave empty to do nothing. Languages tags can be found <a href="https://prismjs.com/#supported-languages">here</a>. | N/A | |
285285

286286

287287

@@ -606,14 +606,15 @@ After:
606606

607607
Alias: `ordered-list-style`
608608

609-
Makes sure that ordered lists follow the style specified. **Note: that 2 spaces or 1 tab is considered to be an indentation level.**
609+
Makes sure that ordered lists follow the style specified. <b>Note: that 2 spaces or 1 tab is considered to be an indentation level.</b>
610610

611611
### Options
612612

613613
| Name | Description | List Items | Default Value |
614614
| ---- | ----------- | ---------- | ------------- |
615-
| `Number Style` | The number style used in ordered list indicators | `ascending`: Makes sure ordered list items are ascending (i.e. 1, 2, 3, etc.)<br/><br/>`lazy`: Makes sure ordered list item indicators all are the number 1 | `ascending` |
615+
| `Number Style` | The number style used in ordered list indicators | `ascending`: Makes sure ordered list items are ascending (i.e. 1, 2, 3, etc.)<br/><br/>`lazy`: Makes sure ordered list item indicators all are the same<br/><br/>`preserve`: Preserves ordered list item indicators as they are | `ascending` |
616616
| `Ordered List Indicator End Style` | The ending character of an ordered list indicator | `.`: Makes sure ordered list items indicators end in '.' (i.e `1.`)<br/><br/>`)`: Makes sure ordered list item indicators end in ')' (i.e. `1)`) | `.` |
617+
| `Preserve Starting Number` | Whether to preserve the starting number of an ordered list. This can be used to have an ordered list that has content in between the ordered list items. | N/A | `undefined` |
617618

618619

619620

@@ -741,6 +742,126 @@ After:
741742
1) Item 3
742743
``````
743744
</details>
745+
<details><summary>Ordered lists have list items set to ascending numerical order using initial indicator number when Number Style is `ascending` and `preserveStart` is enabled</summary>
746+
747+
Before:
748+
749+
`````` markdown
750+
1. Item 1
751+
2. Item 2
752+
4. Item 3
753+
754+
Some text here
755+
756+
4. Item 4
757+
5. Item 5
758+
7. Item 6
759+
``````
760+
761+
After:
762+
763+
`````` markdown
764+
1. Item 1
765+
2. Item 2
766+
3. Item 3
767+
768+
Some text here
769+
770+
4. Item 4
771+
5. Item 5
772+
6. Item 6
773+
``````
774+
</details>
775+
<details><summary>Nested ordered lists have list items set to ascending numerical order using initial indicator number when Number Style is `ascending` and `preserveStart` is enabled</summary>
776+
777+
Before:
778+
779+
`````` markdown
780+
4. Item 4
781+
2. Item 5
782+
2. Subitem 2
783+
5. Subitem 3
784+
2. Subitem 4
785+
4. Item 6
786+
``````
787+
788+
After:
789+
790+
`````` markdown
791+
4. Item 4
792+
5. Item 5
793+
2. Subitem 2
794+
3. Subitem 3
795+
4. Subitem 4
796+
6. Item 6
797+
``````
798+
</details>
799+
<details><summary>Ordered lists have list items set to initial indicator number when Number Style is `lazy` and `preserveStart` is enabled</summary>
800+
801+
Before:
802+
803+
`````` markdown
804+
2. Item 2
805+
5. Item 3
806+
4. Item 4
807+
``````
808+
809+
After:
810+
811+
`````` markdown
812+
2. Item 2
813+
2. Item 3
814+
2. Item 4
815+
``````
816+
</details>
817+
<details><summary>Nested ordered lists have list items set to initial indicator number when Number Style is `lazy` and `preserveStart` is enabled</summary>
818+
819+
Before:
820+
821+
`````` markdown
822+
4. Item 4
823+
2. Item 5
824+
2. Subitem 2
825+
5. Subitem 3
826+
2. Subitem 4
827+
4. Item 6
828+
``````
829+
830+
After:
831+
832+
`````` markdown
833+
4. Item 4
834+
4. Item 5
835+
2. Subitem 2
836+
2. Subitem 3
837+
2. Subitem 4
838+
4. Item 6
839+
``````
840+
</details>
841+
<details><summary>Ordered lists items are not modified when Number Style is `preserve`</summary>
842+
843+
Before:
844+
845+
`````` markdown
846+
4. Item 4
847+
2. Item 5
848+
2. Subitem 2
849+
5. Subitem 3
850+
2. Subitem 4
851+
4. Item 6
852+
``````
853+
854+
After:
855+
856+
`````` markdown
857+
4. Item 4
858+
2. Item 5
859+
2. Subitem 2
860+
5. Subitem 3
861+
2. Subitem 4
862+
4. Item 6
863+
``````
864+
</details>
744865

745866
## Proper Ellipsis
746867

@@ -779,9 +900,9 @@ Updates the quotes in the body content to be updated to the specified single and
779900

780901
| Name | Description | List Items | Default Value |
781902
| ---- | ----------- | ---------- | ------------- |
782-
| `Enable `Single Quote Style`` | Specifies that the selected single quote style should be used. | N/A | `true` |
903+
| `Enable <code>Single Quote Style</code>` | Specifies that the selected single quote style should be used. | N/A | `true` |
783904
| `Single Quote Style` | The style of single quotes to use. | `''`: Uses "'" instead of smart single quotes<br/><br/>`‘’`: Uses "‘" and "’" instead of straight single quotes | `''` |
784-
| `Enable `Double Quote Style`` | Specifies that the selected double quote style should be used. | N/A | `true` |
905+
| `Enable <code>Double Quote Style</code>` | Specifies that the selected double quote style should be used. | N/A | `true` |
785906
| `Double Quote Style` | The style of double quotes to use. | `""`: Uses '"' instead of smart double quotes<br/><br/>`“”`: Uses '“' and '”' instead of straight double quotes | `""` |
786907

787908

docs/docs/settings/footnote-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Maecenas malesuada dignissim purus ac volutpat.
9393

9494
Alias: `re-index-footnotes`
9595

96-
Re-indexes footnote keys and footnote, based on the order of occurrence. **Note: This rule does _not_ work if there is more than one footnote for a key.**
96+
Re-indexes footnote keys and footnote, based on the order of occurrence. <b>Note: This rule does <i>not</i> work if there is more than one footnote for a key.</b>
9797

9898

9999

docs/docs/settings/heading-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ After:
309309

310310
Alias: `remove-trailing-punctuation-in-heading`
311311

312-
Removes the specified punctuation from the end of headings making sure to ignore the semicolon at the end of [HTML entity references](https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references).
312+
Removes the specified punctuation from the end of headings making sure to ignore the semicolon at the end of <a href="https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references">HTML entity references</a>.
313313

314314
### Options
315315

docs/docs/settings/spacing-rules.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ After:
172172

173173
Alias: `empty-line-around-blockquotes`
174174

175-
Ensures that there is an empty line around blockquotes unless they start or end a document. **Note: an empty line is either one less level of nesting for blockquotes or a newline character.**
175+
Ensures that there is an empty line around blockquotes unless they start or end a document. <b>Note: an empty line is either one less level of nesting for blockquotes or a newline character.</b>
176176

177177

178178

@@ -512,7 +512,7 @@ Content
512512

513513
Alias: `empty-line-around-math-blocks`
514514

515-
Ensures that there is an empty line around math blocks using `Number of Dollar Signs to Indicate a Math Block` to determine how many dollar signs indicates a math block for single-line math.
515+
Ensures that there is an empty line around math blocks using <code>Number of Dollar Signs to Indicate a Math Block</code> to determine how many dollar signs indicates a math block for single-line math.
516516

517517

518518

@@ -948,7 +948,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
948948

949949
Alias: `move-math-block-indicators-to-their-own-line`
950950

951-
Move all starting and ending math block indicators to their own lines using `Number of Dollar Signs to Indicate a Math Block` to determine how many dollar signs indicates a math block for single-line math.
951+
Move all starting and ending math block indicators to their own lines using <code>Number of Dollar Signs to Indicate a Math Block</code> to determine how many dollar signs indicates a math block for single-line math.
952952

953953

954954

@@ -1328,7 +1328,7 @@ After:
13281328

13291329
Alias: `remove-space-around-characters`
13301330

1331-
Ensures that certain characters are not surrounded by whitespace (either single spaces or a tab). **Note: this may causes issues with markdown format in some cases.**
1331+
Ensures that certain characters are not surrounded by whitespace (either single spaces or a tab). <b>Note: this may causes issues with markdown format in some cases.</b>
13321332

13331333
### Options
13341334

@@ -1430,14 +1430,14 @@ After:
14301430

14311431
Alias: `remove-space-before-or-after-characters`
14321432

1433-
Removes space before the specified characters and after the specified characters. **Note: this may causes issues with markdown format in some cases.**
1433+
Removes space before the specified characters and after the specified characters. <b>Note: this may causes issues with markdown format in some cases.</b>
14341434

14351435
### Options
14361436

14371437
| Name | Description | List Items | Default Value |
14381438
| ---- | ----------- | ---------- | ------------- |
1439-
| `Remove Space Before Characters` | Removes space before the specified characters. **Note: using `{` or `}` in the list of characters will unexpectedly affect files as it is used in the ignore syntax behind the scenes.** | N/A | `,!?;:).’”]` |
1440-
| `Remove Space After Characters` | Removes space after the specified characters. **Note: using `{` or `}` in the list of characters will unexpectedly affect files as it is used in the ignore syntax behind the scenes.** | N/A | `¿¡‘“([` |
1439+
| `Remove Space Before Characters` | Removes space before the specified characters. <b>Note: using <code>{</code> or <code>}</code> in the list of characters will unexpectedly affect files as it is used in the ignore syntax behind the scenes.</b> | N/A | `,!?;:).’”]` |
1440+
| `Remove Space After Characters` | Removes space after the specified characters. <b>>Note: using <code>{</code> or <code>}</code> in the list of characters will unexpectedly affect files as it is used in the ignore syntax behind the scenes.</b> | N/A | `¿¡‘“([` |
14411441

14421442

14431443

@@ -1513,14 +1513,14 @@ After:
15131513

15141514
Alias: `space-between-chinese-japanese-or-korean-and-english-or-numbers`
15151515

1516-
Ensures that Chinese, Japanese, or Korean and English or numbers are separated by a single space. Follows these [guidelines](https://github.com/sparanoid/chinese-copywriting-guidelines)
1516+
Ensures that Chinese, Japanese, or Korean and English or numbers are separated by a single space. Follows these <a href="https://github.com/sparanoid/chinese-copywriting-guidelines">guidelines</a>
15171517

15181518
### Options
15191519

15201520
| Name | Description | List Items | Default Value |
15211521
| ---- | ----------- | ---------- | ------------- |
1522-
| `English Punctuations and Symbols Before CJK` | The list of non-letter punctuation and symbols to consider to be from English when found before Chinese, Japanese, or Korean characters. **Note: "*" is always considered to be English and is necessary for handling some markdown syntaxes properly.** | N/A | `-+;:'"°%$)]` |
1523-
| `English Punctuations and Symbols After CJK` | The list of non-letter punctuation and symbols to consider to be from English when found after Chinese, Japanese, or Korean characters. **Note: "*" is always considered to be English and is necessary for handling some markdown syntaxes properly.** | N/A | `-+'"([¥$` |
1522+
| `English Punctuations and Symbols Before CJK` | The list of non-letter punctuation and symbols to consider to be from English when found before Chinese, Japanese, or Korean characters. <b>Note: "*" is always considered to be English and is necessary for handling some markdown syntaxes properly.</b> | N/A | `-+;:'"°%$)]` |
1523+
| `English Punctuations and Symbols After CJK` | The list of non-letter punctuation and symbols to consider to be from English when found after Chinese, Japanese, or Korean characters. <b>Note: "*" is always considered to be English and is necessary for handling some markdown syntaxes properly.</b> | N/A | `-+'"([¥$` |
15241524

15251525

15261526

0 commit comments

Comments
 (0)