fix linter errors

This commit is contained in:
Hayden 2022-12-02 16:08:09 -09:00
parent 8e512a542d
commit ee3ac89092
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 2 additions and 3 deletions

View file

@ -22,7 +22,7 @@ type LinkDetail = BaseDetail & {
}; };
type MarkdownDetail = BaseDetail & { type MarkdownDetail = BaseDetail & {
type: "markdown", type: "markdown";
text: string; text: string;
}; };

View file

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import MarkdownIt from "markdown-it"; import MarkdownIt from "markdown-it";
import DOMPurify from 'dompurify'; import DOMPurify from "dompurify";
type Props = { type Props = {
source: string; source: string;
@ -14,7 +14,6 @@
typographer: true, typographer: true,
}); });
const raw = computed(() => { const raw = computed(() => {
const html = md.render(props.source); const html = md.render(props.source);
return DOMPurify.sanitize(html); return DOMPurify.sanitize(html);