1import remark from "remark";
2import gfm from "remark-gfm";
3import slug from "remark-slug";
4import heading from "remark-heading-id";
5import html from "remark-html";
6import remarkprism from "remark-prism";
7import normalize from "mdurl/encode";
9// img is wrapped in figure so that images can be extra wide in the blog posts
10function Img(h, node) {
11 var props = { src: normalize(node.url), alt: node.alt };
12 if (node.title !== null && node.title !== undefined) {
13 props.title = node.title;
36// Converts markdown strings into markdown HTML/React components
37export default async function Markdown({ post }) {
38 const result = await remark()
44 .process(post.content);
46 return result.toString();
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list