Fix doc page
This commit is contained in:
parent
6be127e18b
commit
27733e2119
3 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
import Vue from 'vue';
|
||||
import { faFileAlt } from '@fortawesome/free-solid-svg-icons'
|
||||
import MarkdownIt from 'markdown-it';
|
||||
import MarkdownItAnchor from 'markdown-it-anchor';
|
||||
import i18n from '../i18n';
|
||||
import { url, lang } from '../config';
|
||||
import MkLink from '../components/link.vue';
|
||||
|
@ -26,6 +27,10 @@ const markdown = MarkdownIt({
|
|||
html: true
|
||||
});
|
||||
|
||||
markdown.use(MarkdownItAnchor, {
|
||||
slugify: (s) => encodeURIComponent(String(s).trim().replace(/\s+/g, '-'))
|
||||
});
|
||||
|
||||
export default Vue.extend({
|
||||
i18n,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue