obsidian-linter: Bug: `move-math-block-indicators-to-their-own-line` Incorrectly does not recognize `>` in block quotes as own line

Describe the Bug

When move-math-block-indicators-to-their-own-line is enabled, Linter moves $$math-blocks$$ outside of block quote environments.

How to Reproduce

Steps to reproduce the behavior:

  1. Enable move-math-block-indicators-to-their-own-line
  2. Create a new Document
  3. Write a block quote with math-block, e.g.
> $$math$$

  1. Lint the file multiple times. After three steps, the process converges to
> 
$$
math
$$

First Linting Step

> $$
math
$$

Second Linting Step

> 
$$

math

$$

Final Linting Step

> 
$$
math
$$

The process has now converged, further linting does not change the file.

Expected Behavior

The minimal example

> $$math$$

Should be converted into

> $$
> math
> $$

Screenshots

If applicable, add screenshots to help explain your problem.

Device

I only tested on Desktop

  • Desktop
  • Mobile

Additional Context

The issue does not occur with empty-line-around-math-blocks.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15

Most upvoted comments

@pjkaufman Again, thank you so much for all your efforts and hard work fixing all these issues! 💛🎉