feat: video on markdown
This commit is contained in:
parent
2e7f77625a
commit
6a90488d0a
4 changed files with 26 additions and 3 deletions
|
|
@ -8,10 +8,18 @@ import mditFigureWithPCaption from "markdown-it-image-figures";
|
|||
import mditAnchor from "markdown-it-anchor";
|
||||
import { useManualStore } from "@/stores/manual";
|
||||
import { storeToRefs } from "pinia";
|
||||
// @ts-expect-error
|
||||
import mditVideo from "markdown-it-video";
|
||||
|
||||
const md = new MarkdownIt().use(mditAnchor).use(mditFigureWithPCaption, {
|
||||
figcaption: "alt",
|
||||
});
|
||||
const md = new MarkdownIt()
|
||||
.use(mditAnchor)
|
||||
.use(mditVideo)
|
||||
.use(mditFigureWithPCaption, {
|
||||
figcaption: "alt",
|
||||
html: true,
|
||||
linkify: true,
|
||||
typography: true,
|
||||
});
|
||||
|
||||
const route = useRoute();
|
||||
const manual = useManualStore();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue