Skip to content

Commit

Permalink
🎨 Fix table overflow (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Nov 18, 2023
1 parent de50fde commit 4d0448b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-emus-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'myst-to-react': patch
---

Fix table overflow inside of a figure
5 changes: 1 addition & 4 deletions packages/myst-to-react/src/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ const BASIC_RENDERERS: BasicNodeRenderers = {
},
container({ node }) {
return (
<figure
id={node.html_id || node.identifier || node.key}
className={classNames(node.kind, node.class)}
>
<figure id={node.html_id || node.identifier || node.key} className={classNames(node.class)}>
<MyST ast={node.children} />
</figure>
);
Expand Down

0 comments on commit 4d0448b

Please sign in to comment.