@@ -3,6 +3,7 @@ import Markdoc, { Ast, Node, Tag } from "@markdoc/markdoc";
33import { heading } from "./schema/Heading.markdoc";
44import { footnoteRef } from "./schema/footnoteRef.markdoc";
55import { footnoteItem } from "./schema/footnoteItem.markdoc";
6+import { link } from "./schema/link.markdoc";
67import Tabs from "../components/Tabs";
78import Tab from "../components/Tab";
89import Button from "../components/Button";
@@ -32,40 +33,6 @@ require("prismjs/components/prism-hoon");
3233// };
3334// }
3435
35−// function a(h, node) {
36−// const url = node.url;
37−
38−// if (
39−// url.includes("https://urbit.org") ||
40−// url.startsWith("/") ||
41−// url.startsWith("#")
42−// ) {
43−// return {
44−// type: "element",
45−// tagName: "a",
46−// properties: {
47−// href: url,
48−// },
49−// children: all(h, node),
50−// };
51−// } else {
52−// return {
53−// type: "element",
54−// tagName: "a",
55−// properties: {
56−// target: "_blank",
57−// rel: "noopener",
58−// href: url,
59−// },
60−// children: all(h, node),
61−// };
62−// }
63−// }
64−
65−// const handlers = defaultHandlers;
66−// handlers.link = a;
67−// handlers.image = img;
68−
6936export function Fence({ children, language }) {
7037 return (
7138 <Highlight
@@ -161,6 +128,7 @@ export default function Markdown({ post }) {
161128 nodes: {
162129 fence,
163130 heading,
131+ link,
164132 footnoteItem,
165133 footnoteRef,
166134 },