feat: 正则表达式
parent
046b45d4fa
commit
bdc54856b0
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div
|
||||
class="markdown-body"
|
||||
v-html="htmlStr"
|
||||
></div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { marked } from 'marked';
|
||||
import { getMarkdownContent } from '@/utils/tools';
|
||||
|
||||
const htmlStr = ref('');
|
||||
getMarkdownContent('./md/reg.md').then((res) => {
|
||||
htmlStr.value = marked(res);
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue