Skip to content

Commit

Permalink
fix(rehype-momiji): fix stylings
Browse files Browse the repository at this point in the history
  • Loading branch information
taga3s committed Dec 8, 2024
1 parent ca9075c commit 096c765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/packages/rehype-momiji/buildCodeBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const buildCodeBlock = (

node.properties = {
...node.properties,
style: `${node.properties.style}; padding-top: 48px; position: relative;`,
style: `${node.properties.style}; padding-top: 48px;`,
};

node.children.unshift({
Expand Down
1 change: 1 addition & 0 deletions app/packages/rehype-momiji/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const rehypeMomiji: Plugin<Option[], Root> = (options) => {

node.tagName = "div";
node.children = codeBlock.children as ElementContent[];
node.properties.style = "position: relative;";
});
};
};
Expand Down

0 comments on commit 096c765

Please sign in to comment.