mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
fix linter errors
This commit is contained in:
parent
8e512a542d
commit
ee3ac89092
2 changed files with 2 additions and 3 deletions
|
@ -22,7 +22,7 @@ type LinkDetail = BaseDetail & {
|
|||
};
|
||||
|
||||
type MarkdownDetail = BaseDetail & {
|
||||
type: "markdown",
|
||||
type: "markdown";
|
||||
text: string;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import MarkdownIt from "markdown-it";
|
||||
import DOMPurify from 'dompurify';
|
||||
import DOMPurify from "dompurify";
|
||||
|
||||
type Props = {
|
||||
source: string;
|
||||
|
@ -14,7 +14,6 @@
|
|||
typographer: true,
|
||||
});
|
||||
|
||||
|
||||
const raw = computed(() => {
|
||||
const html = md.render(props.source);
|
||||
return DOMPurify.sanitize(html);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue