minor cleanups
This commit is contained in:
@@ -52,6 +52,7 @@ const posts = await Promise.all(entries.map(async entry => {
|
|||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
|
|||||||
@@ -2,15 +2,10 @@ import type { Root, Paragraph, PhrasingContent } from 'mdast';
|
|||||||
import type { VFile } from 'vfile';
|
import type { VFile } from 'vfile';
|
||||||
import { visit } from 'unist-util-visit';
|
import { visit } from 'unist-util-visit';
|
||||||
import { toString } from 'mdast-util-to-string';
|
import { toString } from 'mdast-util-to-string';
|
||||||
import { writeFileSync } from 'node:fs';
|
|
||||||
|
|
||||||
|
|
||||||
export function remarkDescription() {
|
export function remarkDescription() {
|
||||||
return (tree: Root, vfile: VFile) => {
|
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;
|
let description: string | null = null;
|
||||||
|
|
||||||
visit(tree, 'paragraph', (node: Paragraph) => {
|
visit(tree, 'paragraph', (node: Paragraph) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user