Merge pull request #279 from timlrx/fix/toc-code-headings

fix: parse inline code headings to string
This commit is contained in:
Timothy 2021-11-26 21:36:58 +08:00 committed by GitHub
commit 00059a8e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
import { visit } from 'unist-util-visit'
import { slug } from 'github-slugger'
import { toString } from 'hast-util-to-string'
import { toString } from 'mdast-util-to-string'
export default function remarkTocHeadings(options) {
return (tree) =>