minor cleanups
This commit is contained in:
@@ -52,6 +52,7 @@ const posts = await Promise.all(entries.map(async entry => {
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user