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

### Required

[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/explorer/ExplorerSyncDecorator.ts#L95)]: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>

[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/explorer/ExplorerSyncDecorator.ts#L96)][[2](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L326)][[3](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L327)][[4](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L328)][[5](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L345)][[6](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L346)][[7](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L347)][[8](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L366)][[9](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L367)][[10](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/MarkdownHijackerSettingUI.ts#L368)][[11](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L26)][[12](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L46)][[13](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L50)][[14](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L85)][[15](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L111)][[16](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L135)][[17](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L143)][[18](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L144)][[19](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L145)][[20](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L146)][[21](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/suggest/BaseSuggest.ts#L148)][[22](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L27)][[23](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L28)][[24](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L41)][[25](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L42)][[26](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L43)][[27](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L65)][[28](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L66)][[29](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L67)][[30](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L68)] and more :You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.


[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openFolderSelectionDialog.ts#L12)]:This is only available on desktop, use the [Platform](https://docs.obsidian.md/Reference/TypeScript+API/Platform) interface from the Obsidian API instead.

[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L42)][[2](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L60)][[3](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L257)]:Obsidian's configuration directory isn't necessarily `.obsidian`, it can be configured by the user. You can access the configured value from `Vault#configDir`

[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L60)][[2](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/utils/openVaultFolderSelectionDialog.ts#L95)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.



---

### Optional

[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/settings/utils.ts#L41)][[2](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/statusBar/StatusBarManager.ts#L23)][[3](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L41)][[4](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L59)][[5](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L101)][[6](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L116)][[7](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L134)][[8](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L192)][[9](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L196)][[10](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L222)][[11](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SnapShotService.ts#L256)][[12](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/utils.ts#L36)][[13](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SyncService.ts#L141)][[14](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SyncService.ts#L386)][[15](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/watchers/utils.ts#L14)]:Casting to `any` should be avoided as much as possible.

[[1](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SyncService.ts#L217)][[2](https://github.com/especialkim/markdown-hijacker/blob/5b5e64cd68737d7efa39ea6f5230c375f98389c5/src/sync/SyncService.ts#L288)]:Use `app.fileManager.trashFile(file: TAbstractFile)` instead, this will make sure that the file is deleted according to the users preferences.



---



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.