Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Remove xss warns because of fixed values in components (no problems)

Smaug67398f61ffc4dee8
diff --git a/frontend/app/components/MarkdownSyntax.vue b/frontend/app/components/MarkdownSyntax.vue
index 73c98d28..3a7e72cc 100644
--- a/frontend/app/components/MarkdownSyntax.vue
+++ b/frontend/app/components/MarkdownSyntax.vue
@@ -200,6 +200,7 @@ Useful for side content or notes.
<p>Use KaTeX for math expressions: <code>$...$</code> (inline) or <code>$$...$$</code> (block).</p>
<div class="demo">
<pre>$\int_{-\infty}^{+\infty} e^{-x^2} dx = \sqrt{\pi}$</pre>
+ <!-- eslint-disable-next-line vue/no-v-html OK fixed value -->
<p v-html="compile('$$\\int_{-\\infty}^{+\\infty} e^{-x^2} dx = \\sqrt{\\pi}$$')"></p>
</div>
diff --git a/frontend/app/pages/(public)/_components/SelfHostSteps.vue b/frontend/app/pages/(public)/_components/SelfHostSteps.vue
index f7a57c57..f7199420 100644
--- a/frontend/app/pages/(public)/_components/SelfHostSteps.vue
+++ b/frontend/app/pages/(public)/_components/SelfHostSteps.vue
@@ -13,6 +13,7 @@
<h3>{{ step.title }}</h3>
</div>
<div class="step-content">
+ <!-- eslint-disable-next-line vue/no-v-html OK fixed value -->
<p v-html="step.description" />
<div v-if="step.code" class="code-wrap">
<pre class="code">{{ step.code }}</pre>