refactor: use unifiedjs esm packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import visit from 'unist-util-visit'
|
||||
import { visit } from 'unist-util-visit'
|
||||
|
||||
module.exports = function (options) {
|
||||
export default function remarkTocHeadings(options) {
|
||||
return (tree) =>
|
||||
visit(tree, 'heading', (node, index, parent) => {
|
||||
options.exportRef.push({
|
||||
|
||||
Reference in New Issue
Block a user