minor cleanups

This commit is contained in:
2026-03-30 20:36:23 -04:00
parent e02af4c552
commit bfdaac8095
2 changed files with 1 additions and 5 deletions

View File

@@ -52,6 +52,7 @@ const posts = await Promise.all(entries.map(async entry => {
ul {
list-style: none;
margin-left: 0;
}
hr {

View File

@@ -2,15 +2,10 @@ import type { Root, Paragraph, PhrasingContent } from 'mdast';
import type { VFile } from 'vfile';
import { visit } from 'unist-util-visit';
import { toString } from 'mdast-util-to-string';
import { writeFileSync } from 'node:fs';
export function remarkDescription() {
return (tree: Root, vfile: VFile) => {
if (vfile.basename == 'advent-of-languages-2024-04.mdx') {
writeFileSync('tree.json', JSON.stringify(tree, undefined, 4));
}
let description: string | null = null;
visit(tree, 'paragraph', (node: Paragraph) => {