fix(search): incorrect anchor link, fixed #90
This commit is contained in:
parent
855c450a97
commit
b8a3d8f380
5 changed files with 9 additions and 7 deletions
|
|
@ -2,7 +2,7 @@ import marked from 'marked'
|
|||
import Prism from 'prismjs'
|
||||
import { helper as helperTpl, tree as treeTpl } from './tpl'
|
||||
import { genTree } from './gen-tree'
|
||||
import { slugify, clearSlugCache } from './slugify'
|
||||
import { slugify } from './slugify'
|
||||
import { emojify } from './emojify'
|
||||
import { toURL, parse } from '../route/hash'
|
||||
import { getBasePath, isAbsolutePath, getPath } from '../route/util'
|
||||
|
|
@ -25,7 +25,7 @@ export const markdown = cached(text => {
|
|||
|
||||
html = markdownCompiler(text)
|
||||
html = emojify(html)
|
||||
clearSlugCache()
|
||||
slugify.clear()
|
||||
|
||||
return html
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue