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

### Required

[[1](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/modals/proof-suggestion.ts#L160)][[2](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/modals/proof-suggestion.ts#L161)][[3](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/modals/proof-suggestion.ts#L162)][[4](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/material-panel.ts#L205)][[5](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/material-panel.ts#L285)][[6](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/mp-article-header.ts#L347)][[7](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/mp-article-header.ts#L348)][[8](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/mp-article-header.ts#L349)][[9](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/mp-article-header.ts#L350)][[10](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/theme-manager.ts#L187)][[11](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/theme-manager.ts#L190)][[12](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/theme-manager.ts#L191)][[13](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/theme-manager.ts#L197)][[14](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/theme-manager.ts#L203)][[15](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/webview.ts#L12)][[16](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/webview.ts#L13)][[17](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/webview.ts#L14)][[18](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/main.ts#L299)][[19](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/main.ts#L303)][[20](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/main.ts#L307)][[21](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/iconize.ts#L34)][[22](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/iconize.ts#L35)]: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/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/previewer.ts#L269)][[2](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/views/previewer.ts#L341)][[3](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/mathjax.ts#L31)][[4](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/post-render.ts#L73)][[5](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/post-render.ts#L80)][[6](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/post-render.ts#L100)][[7](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/code.ts#L103)][[8](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/embed.ts#L511)][[9](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/iconize.ts#L39)][[10](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/remix-icon.ts#L26)][[11](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/table.ts#L31)][[12](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/summary.ts#L50)][[13](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/list-item.ts#L30)][[14](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/list-item.ts#L50)][[15](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/utils/urls.ts#L75)][[16](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/utils/utils.ts#L55)]: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/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/main.ts#L88)][[2](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/utils/urls.ts#L7)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/render/marked-extensions/remix-icon.ts#L21)]:Obsidian's configuration directory isn't necessarily `.obsidian`, it can be configured by the user. You can access the configured value from `Vault#configDir`



---

### Optional

[[1](https://github.com/learnerchen-forever/wewrite/blob/8dee32cc27541f794f06f1fa81fdea8e54d5a870/src/modals/proof-suggestion.ts#L28)]: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.