mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
parent
f977c33d8e
commit
7d62842b15
|
|
@ -9,10 +9,10 @@
|
|||
/>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { computed, nextTick, ref } from 'vue'
|
||||
import { computed, ref } from 'vue'
|
||||
import { MdPreview, config } from 'md-editor-v3'
|
||||
config({
|
||||
markdownItConfig(md: markdownit) {
|
||||
markdownItConfig(md) {
|
||||
md.renderer.rules.link_open = (tokens, idx, options, env, self) => {
|
||||
tokens[idx].attrSet('target', '_blank')
|
||||
return md.renderer.renderToken(tokens, idx, options)
|
||||
|
|
|
|||
Loading…
Reference in New Issue