Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Linter deletes line beginnings and modifies front matter content in certain documents in edit mode #1093

Closed
1 task done
jonas-sk opened this issue May 22, 2024 · 8 comments · Fixed by #1094
Closed
1 task done
Assignees
Labels
bug Something isn't working live-preview reproducible resolution/update-made A change has been made that should resolve this issue or request

Comments

@jonas-sk
Copy link

  • I have verified that I am on the latest version of the Linter

Describe the Bug

The linter seems to clip the beginning of lined in a bullet point list with several indentations and formatting on certain words, as well as add some random* to front matter consisting of links to headings in other notes.

How to Reproduce

Steps to reproduce

  1. Paste the following example document into Obsidian (I could unfortunately not narrow down the exact causes further to produce a more minimal example; the formatting of the bullet points is so inconsistent because it was converted from a Word file):
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2][para 8], [para 13][para 24]; Document B, para. [3])

### a. test (_Document A, para. [para 2])_?

Lorem ipsum dolor:

- **test**: **X** v. **Y** _(the allies)_ with support from **Y**
    
    - Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
    
    - „quote [] quote.”
        
    - “quote.”
        
    - “quote.”
        
- **test**: X v Y
    
- **test:** X v Y
    
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
    
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
    
    - Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
    - *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
        
        - test
            
        - More on this
  1. Run the linter while in editing mode (bug does not occur in source mode)
  2. Get the following output
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-05
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chap*ter]]"

	crea*ted: 2024-05-22
last_modified: 2024-05-22

	cus on XYZ.
st:
	(Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])
test (_Document A, para. [para 2])_?
	em ipsum dolor:
t**: **X** v. **Y** _(the allies)_ with support from **Y**
    
- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):

    - „quote […] quote.”
    
    - “quote.”
    
	- “quote.”
	    
**: X v Y
		*test:** X v Y
m ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
		orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
    
    - Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
    - *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
        
        - test
            
        - More on this

(not the clipped beginnings of most lines as well as the insertion of weird characters in the frontmatter)

This behavior also happened with similarly-structured documents (frontmatter links, weird spacing in bullet points, use of italics and bold, use of [] and real quotation marks)

Expected Behavior

Linter should produce the exact same output as if it were in source mode.

Expected output (run in source mode):

---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"
created: 2024-05-22
last_modified: 2024-05-22
---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2][para 8], [para 13][para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**

	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):

	- „quote […] quote.”

	- “quote.”

	- “quote.”

- **test**: X v Y

- **test:** X v Y

- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?

	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.

		- test

		- More on this

Linter configuration

{
  "ruleConfigs": {
    "format-tags-in-yaml": {
      "enabled": false
    },
    "insert-yaml-attributes": {
      "enabled": false,
      "text-to-insert": "aliases: \ntags: "
    },
    "yaml-timestamp": {
      "enabled": true,
      "date-created": true,
      "date-created-key": "created",
      "force-retention-of-create-value": true,
      "date-modified": true,
      "date-modified-key": "last_modified",
      "format": "YYYY-MM-DD"
    },
    "yaml-title": {
      "enabled": false,
      "title-key": "title"
    },
    "capitalize-headings": {
      "enabled": false,
      "style": "Title Case",
      "ignore-case-words": true,
      "ignore-words": "macOS, iOS, iPhone, iPad, JavaScript, TypeScript, AppleScript",
      "lowercase-words": "via, a, an, the, and, or, but, for, nor, so, yet, at, by, in, of, on, to, up, as, is, if, it, for, to, with, without, into, onto, per"
    },
    "file-name-heading": {
      "enabled": false
    },
    "header-increment": {
      "enabled": false,
      "start-at-h2": false
    },
    "footnote-after-punctuation": {
      "enabled": false
    },
    "move-footnotes-to-the-bottom": {
      "enabled": false
    },
    "re-index-footnotes": {
      "enabled": false
    },
    "proper-ellipsis": {
      "enabled": true
    },
    "remove-consecutive-list-markers": {
      "enabled": false
    },
    "remove-empty-list-markers": {
      "enabled": false
    },
    "remove-hyphenated-line-breaks": {
      "enabled": false
    },
    "remove-multiple-spaces": {
      "enabled": false
    },
    "compact-yaml": {
      "enabled": false,
      "inner-new-lines": false
    },
    "consecutive-blank-lines": {
      "enabled": true
    },
    "convert-spaces-to-tabs": {
      "enabled": true,
      "tabsize": "4"
    },
    "heading-blank-lines": {
      "enabled": true,
      "bottom": true,
      "empty-line-after-yaml": false
    },
    "line-break-at-document-end": {
      "enabled": false
    },
    "paragraph-blank-lines": {
      "enabled": true
    },
    "space-after-list-markers": {
      "enabled": true
    },
    "trailing-spaces": {
      "enabled": true,
      "twp-space-line-break": false
    },
    "escape-yaml-special-characters": {
      "enabled": false,
      "try-to-escape-single-line-arrays": false
    },
    "force-yaml-escape": {
      "enabled": false,
      "force-yaml-escape-keys": ""
    },
    "format-yaml-array": {
      "enabled": false,
      "alias-key": true,
      "tag-key": true,
      "default-array-style": "single-line",
      "default-array-keys": true,
      "force-single-line-array-style": "",
      "force-multi-line-array-style": ""
    },
    "move-tags-to-yaml": {
      "enabled": false,
      "how-to-handle-existing-tags": "Nothing",
      "tags-to-ignore": ""
    },
    "remove-yaml-keys": {
      "enabled": false,
      "yaml-keys-to-remove": ""
    },
    "yaml-key-sort": {
      "enabled": false,
      "yaml-key-priority-sort-order": "",
      "priority-keys-at-start-of-yaml": true,
      "yaml-sort-order-for-other-keys": "None"
    },
    "yaml-title-alias": {
      "enabled": false,
      "preserve-existing-alias-section-style": true,
      "keep-alias-that-matches-the-filename": false,
      "use-yaml-key-to-keep-track-of-old-filename-or-heading": true
    },
    "headings-start-line": {
      "enabled": false
    },
    "remove-trailing-punctuation-in-heading": {
      "enabled": false,
      "punctuation-to-remove": ".,;:!。,;:!"
    },
    "auto-correct-common-misspellings": {
      "enabled": false,
      "ignore-words": ""
    },
    "blockquote-style": {
      "enabled": true,
      "style": "space"
    },
    "convert-bullet-list-markers": {
      "enabled": true
    },
    "emphasis-style": {
      "enabled": true,
      "style": "asterisk"
    },
    "no-bare-urls": {
      "enabled": false
    },
    "ordered-list-style": {
      "enabled": false,
      "number-style": "ascending",
      "list-end-style": "."
    },
    "quote-style": {
      "enabled": false,
      "single-quote-enabled": true,
      "single-quote-style": "''",
      "double-quote-enabled": true,
      "double-quote-style": "\"\""
    },
    "strong-style": {
      "enabled": false,
      "style": "consistent"
    },
    "two-spaces-between-lines-with-content": {
      "enabled": false
    },
    "unordered-list-style": {
      "enabled": false,
      "list-style": "consistent"
    },
    "empty-line-around-blockquotes": {
      "enabled": false
    },
    "empty-line-around-code-fences": {
      "enabled": true
    },
    "empty-line-around-math-blocks": {
      "enabled": false
    },
    "empty-line-around-tables": {
      "enabled": true
    },
    "move-math-block-indicators-to-their-own-line": {
      "enabled": false
    },
    "remove-empty-lines-between-list-markers-and-checklists": {
      "enabled": true
    },
    "remove-link-spacing": {
      "enabled": false
    },
    "remove-space-around-characters": {
      "enabled": false,
      "include-fullwidth-forms": true,
      "include-cjk-symbols-and-punctuation": true,
      "include-dashes": true,
      "other-symbols": ""
    },
    "remove-space-before-or-after-characters": {
      "enabled": false,
      "characters-to-remove-space-before": ",!?;:).’”]",
      "characters-to-remove-space-after": "¿¡‘“(["
    },
    "space-between-chinese-japanese-or-korean-and-english-or-numbers": {
      "enabled": false,
      "english-symbols-punctuation-before": "-+;:'\"°%$)]",
      "english-symbols-punctuation-after": "-+'\"([¥$"
    },
    "add-blockquote-indentation-on-paste": {
      "enabled": false
    },
    "prevent-double-checklist-indicator-on-paste": {
      "enabled": false
    },
    "prevent-double-list-item-indicator-on-paste": {
      "enabled": true
    },
    "proper-ellipsis-on-paste": {
      "enabled": false
    },
    "remove-hyphens-on-paste": {
      "enabled": false
    },
    "remove-leading-or-trailing-whitespace-on-paste": {
      "enabled": true
    },
    "remove-leftover-footnotes-from-quote-on-paste": {
      "enabled": false
    },
    "remove-multiple-blank-lines-on-paste": {
      "enabled": false
    },
    "add-blank-line-after-yaml": {
      "enabled": false
    },
    "dedupe-yaml-array-values": {
      "enabled": false,
      "dedupe-alias-key": true,
      "dedupe-tag-key": true,
      "dedupe-array-keys": true,
      "ignore-keys": ""
    },
    "sort-yaml-array-values": {
      "enabled": false,
      "sort-alias-key": true,
      "sort-tag-key": true,
      "sort-array-keys": true,
      "ignore-keys": "",
      "sort-order": "Ascending Alphabetical"
    },
    "default-language-for-code-fences": {
      "enabled": false,
      "default-language": ""
    }
  },
  "lintOnSave": true,
  "recordLintOnSaveLogs": false,
  "displayChanged": true,
  "lintOnFileChange": false,
  "displayLintOnFileChangeNotice": false,
  "settingsConvertedToConfigKeyValues": true,
  "foldersToIgnore": [],
  "linterLocale": "system-default",
  "logLevel": "ERROR",
  "lintCommands": [],
  "customRegexes": [],
  "commonStyles": {
    "aliasArrayStyle": "single-line",
    "tagArrayStyle": "single-line",
    "minimumNumberOfDollarSignsToBeAMathBlock": 2,
    "escapeCharacter": "\"",
    "removeUnnecessaryEscapeCharsForMultiLineArrays": false
  }
}

Linter debug log

log level: debug

Running linter
rules before regular rules: 0.10000002384185791 ms
Running Convert Bullet List Markers
convert-bullet-list-markers: 0.7000000476837158 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (_Document A, para. [para 2])_?

Lorem ipsum dolor:

- **test**: **X** v. **Y** _(the allies)_ with support from **Y**
    
    - Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
    
    - „quote […] quote.”
        
    - “quote.”
        
    - “quote.”
        
- **test**: X v Y
    
- **test:** X v Y
    
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
    
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
    
    - Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
    - *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
        
        - test
            
        - More on this
Running Emphasis Style
emphasis-style: 0.7999999523162842 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
    
    - Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
    
    - „quote […] quote.”
        
    - “quote.”
        
    - “quote.”
        
- **test**: X v Y
    
- **test:** X v Y
    
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
    
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
    
    - Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
    - *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
        
        - test
            
        - More on this
Running Proper Ellipsis
proper-ellipsis: 0.5 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
    
    - Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
    
    - „quote […] quote.”
        
    - “quote.”
        
    - “quote.”
        
- **test**: X v Y
    
- **test:** X v Y
    
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
    
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
    
    - Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
    - *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
        
        - test
            
        - More on this
Running Consecutive blank lines
consecutive-blank-lines: 0.5 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
    
    - Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
    
    - „quote […] quote.”
        
    - “quote.”
        
    - “quote.”
        
- **test**: X v Y
    
- **test:** X v Y
    
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
    
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
    
    - Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
    - *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
        
        - test
            
        - More on this
Running Convert Spaces to Tabs
convert-spaces-to-tabs: 0.6999999284744263 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Empty Line Around Code Fences
empty-line-around-code-fences: 0.10000002384185791 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Empty Line Around Tables
empty-line-around-tables: 0.6000000238418579 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Heading blank lines
heading-blank-lines: 0.40000009536743164 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Paragraph blank lines
paragraph-blank-lines: 0.20000004768371582 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Remove Empty Lines Between List Markers and Checklists
remove-empty-lines-between-list-markers-and-checklists: 1.100000023841858 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Space after list markers
space-after-list-markers: 0.2999999523162842 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Custom Regex
custom regex rules: 0 ms
Running Blockquote Style
blockquote-style: 0.2999999523162842 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**
	
	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):
	
	- „quote […] quote.”
		
	- “quote.”
		
	- “quote.”
		
- **test**: X v Y
	
- **test:** X v Y
	
- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)
	
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?
	
	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.
		
		- test
			
		- More on this
Running Trailing spaces
trailing-spaces: 2.700000047683716 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**

	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):

	- „quote […] quote.”

	- “quote.”

	- “quote.”

- **test**: X v Y

- **test:** X v Y

- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?

	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.

		- test

		- More on this
Running YAML Timestamp
yaml-timestamp: 0.3999999761581421 ms
---
aliases:
  - test
tags:
  - test1
  - test2
related:
  - "[[test]]"
  - "[[test 2]]"
date: 2024-05-22
class: "[[test]]"
instructor: "[[test]]"
readings:
  - "[[test]]"
  - "[[test 2#1.1 test chapter]]"

created: 2024-05-22
last_modified: 2024-05-22
---

- Focus on XYZ.

# I. Test:

## (Document A, paras [para 2] – [para 8], [para 13] – [para 24]; Document B, para. [3])

### a. test (*Document A, para. [para 2])*?

Lorem ipsum dolor:

- **test**: **X** v. **Y** *(the allies)* with support from **Y**

	- Lorem ipsum dolor sit amet + consectetur adipiscing elit. Morbi vel ipsum ipsum
- More info ([test](https://www.example.org)):

	- „quote […] quote.”

	- “quote.”

	- “quote.”

- **test**: X v Y

- **test:** X v Y

- (Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum.)

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vel ipsum ipsum. (Document A, para. [2])?

	- Document A [para 2]: “Lorem [ipsum] dolor sit amet, consectetur adipiscing elit.’,”
	- *Ut purus est, laoreet non massa id*, *placerat mollis elit*.

		- test

		- More on this
rules after regular rules: 3.5 ms
rules running: 10.300000071525574 ms
@jonas-sk jonas-sk added the bug Something isn't working label May 22, 2024
@pjkaufman
Copy link
Collaborator

This sounds like maybe it is related to #906 .

@pjkaufman
Copy link
Collaborator

Ok. I think I have a fix for this. It just needed a little bit of a nudge to make sure it was not affecting the ending --- in the logic in the code. I will see about running the integration tests on the logic now and add this test scenario to the list of integration tests to make sure that they pass. Thanks for reporting this!

@pjkaufman
Copy link
Collaborator

I plan to have this merged today. I may also make a beta release this weekend as well, but we will see how things go. Hopefully this fix will be out there soon.

@github-project-automation github-project-automation bot moved this from In Progress to In Next Release in Obsidian Linter Jun 1, 2024
@pjkaufman pjkaufman added the resolution/update-made A change has been made that should resolve this issue or request label Jun 1, 2024
@pjkaufman
Copy link
Collaborator

The fix for this should now be on master and should go out with the next release.

@jonas-sk
Copy link
Author

jonas-sk commented Jun 2, 2024

Thank you so much! I'll try it out once the release is pushed out

@pjkaufman
Copy link
Collaborator

pjkaufman commented Jun 2, 2024

Hey @jonas-sk . It should be available in the new beta release (1.25.0-rc-1) for BRAT if you use that.

@pjkaufman pjkaufman moved this from In Next Release to Released in Obsidian Linter Jul 8, 2024
@bubonicfred
Copy link

Hi, I appear to have a similar problem still in 1.25.0, is there a minimal test I can do to check if it's this specific issue. Will certainly file a new issue with logs if needed.

@pjkaufman
Copy link
Collaborator

Hey @bubonicfred , I don't think a minimal test was determined for this issue. If you do create an issue, if you could include your data.json and a file that has the mentioned issue, I can take a look and see where things go wrong.

You can enable trace logs and see if a specific rule is at fault. If everything looks fine at the end of the logs, it may be another edge case that has not been handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working live-preview reproducible resolution/update-made A change has been made that should resolve this issue or request
Projects
Archived in project
3 participants