You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/settings/content-rules.md
+128-7Lines changed: 128 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@
8
8
9
9
Alias: `auto-correct-common-misspellings`
10
10
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 <ahref="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>
12
12
13
13
### Options
14
14
15
15
| Name | Description | List Items | Default Value |
|`Ignore Words`| A comma separated list of lowercased words to ignore when auto-correcting | N/A ||
18
18
|`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 ||
20
20
21
21
### Additional Info
22
22
@@ -281,7 +281,7 @@ Add a default language to code fences that do not have a language specified.
281
281
282
282
| Name | Description | List Items | Default Value |
|`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`|
616
616
|`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`|
617
618
618
619
619
620
@@ -741,6 +742,126 @@ After:
741
742
1) Item 3
742
743
``````
743
744
</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>
744
865
745
866
## Proper Ellipsis
746
867
@@ -779,9 +900,9 @@ Updates the quotes in the body content to be updated to the specified single and
779
900
780
901
| Name | Description | List Items | Default Value |
|`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`|
783
904
|`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`|
785
906
|`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 |`""`|
Copy file name to clipboardExpand all lines: docs/docs/settings/footnote-rules.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Maecenas malesuada dignissim purus ac volutpat.
93
93
94
94
Alias: `re-index-footnotes`
95
95
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>
Copy file name to clipboardExpand all lines: docs/docs/settings/heading-rules.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ After:
309
309
310
310
Alias: `remove-trailing-punctuation-in-heading`
311
311
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 <ahref="https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references">HTML entity references</a>.
Copy file name to clipboardExpand all lines: docs/docs/settings/spacing-rules.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ After:
172
172
173
173
Alias: `empty-line-around-blockquotes`
174
174
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>
176
176
177
177
178
178
@@ -512,7 +512,7 @@ Content
512
512
513
513
Alias: `empty-line-around-math-blocks`
514
514
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.
516
516
517
517
518
518
@@ -948,7 +948,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
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.
952
952
953
953
954
954
@@ -1328,7 +1328,7 @@ After:
1328
1328
1329
1329
Alias: `remove-space-around-characters`
1330
1330
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>
1332
1332
1333
1333
### Options
1334
1334
@@ -1430,14 +1430,14 @@ After:
1430
1430
1431
1431
Alias: `remove-space-before-or-after-characters`
1432
1432
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>
1434
1434
1435
1435
### Options
1436
1436
1437
1437
| Name | Description | List Items | Default Value |
|`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 |`¿¡‘“([`|
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 <ahref="https://github.com/sparanoid/chinese-copywriting-guidelines">guidelines</a>
1517
1517
1518
1518
### Options
1519
1519
1520
1520
| Name | Description | List Items | Default Value |
|`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 |`-+'"([¥$`|
0 commit comments