mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
fix: spacing between headings
This commit is contained in:
parent
fd8cc74627
commit
1eb43060d5
3 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue