platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.19k stars 80 forks source link

Chore: Swap Off of Deprectated `MarkdownRender.renderMarkdown` to `MarkdownRender.render` #1177

Closed pjkaufman closed 2 days ago

pjkaufman commented 2 days ago

Recently I noticed that MarkdownRender.renderMarkdown is marked as deprecated. So I decided to move to the recommended replacement. It looks to work, but did require changing a little of how the internals work to pass around an instance of the app a little more. This should make it so we don't get caught in any nasty issue with the logic being removed entirely and us getting caught flat footed.

Also adds a warning to linting to hopefully realize when deprecated functions are used in the code.