-
-
Notifications
You must be signed in to change notification settings - Fork 34
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: YAML removal tool also removes consecutive horizontal rules #265
Comments
I could be wrong, but removing the |
@pjkaufman I'll need to look at that. I've been thinking about how to build a regex rule that ignores the If I'm sure to add blank lines before and after horizontal rules, that also makes finding them fairly easy, since I can search for Make sense? |
@tryonkus , the comment I made was actual meant for the plugin's maintainer. It should fix the issue with finding the YAML for Longform without the need for any real change to the horizontal rules or the Linter. |
Gotcha 👍🏻 |
Versions
Longform version: 2.0.7
Obsidian version: 1.6.7
OS [e.g. macOS, Windows, iOS, Android]: MacOS v14.6.1 Sonoma
Theme: Minimal
Other plugins that you think might be relevant here:
Describe the bug
If I place a horizontal rule using three hyphens, some text, then another three hyphens, Longform will treat this as a YAML header and remove the rules and anything between them.
Current workarounds:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If I place a horizontal rule using three hyphens, some text, then another three hyphens, Longform should treat these as rules rather than as a YAML header. Longform should recognize a "---" occurring after anything other than whitespace as a horizontal rule rather than YAML.
Screenshots
none
Additional context
Note: I'm seeing this behavior when compiling notes without YAML frontmatter, and it's possible that Longform would recognize the horizontal rules correctly if there was YAML present. I need to test this.
The text was updated successfully, but these errors were encountered: