Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/main.ts#L128)][[2](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/main.ts#L129)]:Do not detach leaves with your custom view in `onunload`, this is an antipattern, see: <https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines#Don't+detach+leaves+in+%60onunload%60>

[[1](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/indexView.ts#L262)][[2](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/indexView.ts#L277)][[3](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/graphView.ts#L66)][[4](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/graphView.ts#L77)][[5](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/graphView.ts#L111)][[6](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/graphView.ts#L123)][[7](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/graphView.ts#L161)][[8](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/src/view/graphView.ts#L172)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>



---

### Optional

[[1](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/main.ts#L63)][[2](https://github.com/terrychenzw/obsidian-zettelkasten-navigation/blob/40c8a3694f610dcc9ceb5807e184e35c7119af11/main.ts#L130)]:Casting to `any` should be avoided as much as possible.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.