mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-06 01:20:31 +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 MarkdownDetail = BaseDetail & {
|
||||||
type: "markdown",
|
type: "markdown";
|
||||||
text: string;
|
text: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue