Skip to content

Commit 00059a8

Browse files
authored
Merge pull request #279 from timlrx/fix/toc-code-headings
fix: parse inline code headings to string
2 parents 16e1b68 + 75eb350 commit 00059a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/remark-toc-headings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { visit } from 'unist-util-visit'
22
import { slug } from 'github-slugger'
3-
import { toString } from 'hast-util-to-string'
3+
import { toString } from 'mdast-util-to-string'
44

55
export default function remarkTocHeadings(options) {
66
return (tree) =>

0 commit comments

Comments
 (0)