### Required

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L13-L13)[\[2\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L73-L73)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L19-L38)
Promise-returning method provided where a void return was expected by extended/implemented type 'MarkdownRenderChild'.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L33-L33)
Avoid using the main plugin instance as a component. Its lifecycle is too long, which can cause memory leaks.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L45-L45)[\[2\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L46-L46)[\[3\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L47-L47)[\[4\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L84-L84)[\[5\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L87-L87)[\[6\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L116-L116)[\[7\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/processors/processMarkdown.ts#L117-L117)
This assertion is unnecessary since it does not change the type of the expression.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L17-L17)[\[2\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L35-L35)[\[3\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L64-L64)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L17-L17)[\[2\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L35-L35)[\[3\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L87-L87)[\[4\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/ui/settingsTab.ts#L98-L98)
Use sentence case for UI text.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/utils/manageWorkspace.ts#L25-L25)[\[2\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/utils/manageWorkspace.ts#L45-L45)
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/utils/registerExtension.ts#L13-L13)
Async method 'refreshExtensionRegistrations' has no 'await' expression.



---

### Optional

[\[1\]](https://github.com/Outsiders17711/Obsidian-Custom-Syntax-Highlights/blob/9dad2db253d6975e9b62a971c8cd783b545787b6/src/utils/registerExtension.ts#L23-L23)
'e' is defined but never used.

