@@ -4,6 +4,7 @@ import { heading } from "./schema/Heading.markdoc";
44import { footnoteRef } from "./schema/footnoteRef.markdoc";
55import { footnoteItem } from "./schema/footnoteItem.markdoc";
66import { link } from "./schema/link.markdoc";
7+import { image } from "./schema/image.markdoc";
78import Tabs from "../components/Tabs";
89import Tab from "../components/Tab";
910import Button from "../components/Button";
@@ -13,26 +14,6 @@ import Prism from "prism-react-renderer/prism";
1314(typeof global !== "undefined" ? global : window).Prism = Prism;
1415require("prismjs/components/prism-hoon");
1516
16−// img is wrapped in figure so that images can be extra wide in the blog posts
17−// function img(h, node) {
18−// var props = { src: normalize(node.url), alt: node.alt };
19−// if (node.title !== null && node.title !== undefined) {
20−// props.title = node.title;
21−// }
22−// return {
23−// type: "element",
24−// tagName: "figure",
25−// properties: {},
26−// children: [
27−// {
28−// type: "element",
29−// tagName: "img",
30−// properties: props,
31−// },
32−// ],
33−// };
34−// }
35−
3617export function Fence({ children, language }) {
3718 return (
3819 <Highlight
@@ -128,6 +109,7 @@ export default function Markdown({ post }) {
128109 nodes: {
129110 fence,
130111 heading,
112+ image,
131113 link,
132114 footnoteItem,
133115 footnoteRef,