Linter v1.27.0
The latest release is out and ready for users to start working with it. Some changes that have been made that are notable is that now Live Preview updates should work the same as they do for source mode. This should mean fewer bugs for users who use Live Preview. Also, the ability to run YAML Timestamp
after a certain amount of time has passed since the last edit to a note is also available. Plus the Linter should be smaller and load faster due to a couple changes in how the Linter works.
Be aware that the Linter will now download the default list of auto-corrections when Auto-Correct Common Misspellings
is enabled and it is not present at startup or if you enable the rule and it is not currently present. This allows for a faster load time and a smaller bundle size especially if you do not use this rule.
The Linter's settings page has been revamped a little and should load much faster now. It should feel snappier. You will no longer see settings for rules that are not enabled except for the option to enable a rule. This should cut down on some confusion around why rules have not run in the past and it should clean up the settings page for users making the settings list a bit cleaner. Also, do note that incompatible settings will not be allowed to be turned on together and trying to enable both settings at the same time will result in the other setting being turned off. This should only apply to Paragraph Blank Lines
and Line Break Between Lines with Content
and Header Increment
's Start at Header Increment at Heading Level 2
and File Name Heading
. If one of these incompatible rules is found on startup, one of them is turned off and a notice will let you know which has been turned off. You can change which one is turned off by going to the settings and turning on the rule/setting that you want to have enabled.
Thank you to everyone that has reported issues as well as contributed fixes and/or new rules!
Features
- Made some styling changes to make some of the Linter settings to be cleaner and more akin to what is present elsewhere in Obsidian
- Added an option to Auto-Correct Common Misspellings to allow for ignoring words with a capital letter present at anywhere except the first letter
- Added ability to refresh custom auto-correct file contents that the Linter is aware of from the settings page
- Added the ability to run
YAML Timestamp
x seconds after a change is made in an editor - Added the ability to ignore the date modified in the file system in favor of just updating that value when a change is made by the Linter or the user in an editor
- Added rule for adding blank lines around horizontal rules
- Added options to
Ordered List Style
to allow for the list item style to be kept as is and the ability to start the number ordering with the number that starts the list (this is helpful when you have an ordered list with other content in between it) - Moved the default list of common misspellings to a file that gets downloaded once when needed instead of bundling it into the
main.js
- Hide settings that are reliant on other settings being enabled including extra settings for rules that are disabled
- Added logic to help prevent conflicting rules from being enabled at the same time since they result in unexpected or undesired behavior
Bugs
- Fixed the Linter running Auto-Correct Common Misspellings on custom auto-correct files which erased these custom file config values
- Fixed an issue with pasting a URL not working consistently
- Fixed Live Preview not working in some scenarios when a file was updated (hopefully this will put these issues to rest for good)
What's Changed
- Fix: Paste with a URL not Working Consistently by @pjkaufman in #1158
- Release Prep & Fix Up UT RAM Usage by @pjkaufman in #1159
- Add and Update Integration Tests by @pjkaufman in #1168
- Fix: Live Preview Editor Updates by @pjkaufman in #1169
- Update Docs, Some Component Formatting, and Auto-Correct Common Misspellings Functionality by @pjkaufman in #1173
- Feat:
Auto-Correct Common Mispellings
Allow Users to Ignore Words with Multiple Capitals by @pjkaufman in #1175 - Chore: Add Zip File for Manual Plugin Install to Release Workflow by @pjkaufman in #1176
- Chore: Swap Off of Deprectated
MarkdownRender.renderMarkdown
toMarkdownRender.render
by @pjkaufman in #1177 - Feat: Update Date Modified on Editor Content Change & Miscellaneous Style and YAML Timestamp Changes by @pjkaufman in #1178
- Auto-release beta 1.27.0-rc-1 by @pjkaufman in #1179
- Protect Against Null Reference by @pjkaufman in #1184
- horizontal rule spacing by @thomas-forbes in #1171
- Feat: add additional ordered list options by @jose-elias-alvarez in #1183
- Move Default Auto-Correct Misspellings to Separate File by @pjkaufman in #1185
- Hide Unreachable Settings by @pjkaufman in #1189
- Remove JS Styling, Minify CSS, Speed Up Settings Page Loading, Remove Use of
innerHTML
, and Remove Default Hotkey by @pjkaufman in #1190 - Add Other Markdown to HTML Locale String Changes by @pjkaufman in #1191
- Handle Rule Conflicts by @pjkaufman in #1192
- Release Prep by @pjkaufman in #1193
New Contributors
- @thomas-forbes made their first contribution in #1171
- @jose-elias-alvarez made their first contribution in #1183
Full Changelog: 1.26.0...1.27.0