let visit: typeof import('unist-util-visit').visit;
(async () => {
({ visit } = await import('unist-util-visit'));
})();
const icon =
'';
export default function remarkFeedback() {
return (tree) => {
visit(tree, 'heading', (node) => {
// 获取 heading 的内容
const headingText = node.children
.filter((child) => child.type === 'text')
.map((child) => child.value)
.join(' ')
.split(' ')
.join('-');
const template = ``;
const button = {
type: 'html',
value: template,
};
node.children.push(button);
});
};
}