@@ -0,0 +1,22 @@
1+import { Ast, Config, Node, Tag } from "@markdoc/markdoc";
3+export const footnoteItem = {
5+ id: { type: String, render: true, required: true },
6+ href: { type: String, render: false, required: true },
8+ transform(node, config) {
9+ node.attributes.class = `footnote-item`;
10+ const anchor = new Ast.Node(
12+ { class: "footnote-anchor", href: node.attributes.href },
13+ [new Ast.Node("text", { content: "↩" })]
18+ node.transformAttributes(config),
19+ node.transformChildren(config)