fix: spacing between headings

This commit is contained in:
radishzzz 2025-04-17 01:16:44 +01:00
parent fd8cc74627
commit 1eb43060d5
3 changed files with 13 additions and 5 deletions

View file

@ -9,6 +9,7 @@ export function rehypeImgToFigure() {
&& node.children.length === 1
&& node.children[0].tagName === 'img'
&& node.children[0].properties.alt
&& !node.children[0].properties.alt.startsWith('_')
) {
const child = node.children[0]
const altText = child.properties.alt