diff --git a/.changeset/odd-cycles-build.md b/.changeset/odd-cycles-build.md new file mode 100644 index 000000000..3d54a9c3d --- /dev/null +++ b/.changeset/odd-cycles-build.md @@ -0,0 +1,6 @@ +--- +'myst-to-react': minor +'@myst-theme/styles': minor +--- + +Add support for pull-quotes, fix figure classes diff --git a/packages/myst-to-react/src/basic.tsx b/packages/myst-to-react/src/basic.tsx index 8b384259e..30fe2c520 100644 --- a/packages/myst-to-react/src/basic.tsx +++ b/packages/myst-to-react/src/basic.tsx @@ -214,10 +214,14 @@ const BASIC_RENDERERS: BasicNodeRenderers = { ); }, container({ node }) { + const figureName = `fig-${node.kind}`; return (
diff --git a/styles/figures.css b/styles/figures.css index 00aa509f7..aa63b8a09 100644 --- a/styles/figures.css +++ b/styles/figures.css @@ -1,11 +1,14 @@ -figure.quote figcaption { +figure.fig-quote figcaption { text-align: right; } -figure.quote figcaption > p:before { +figure.fig-quote figcaption > p:before { content: '—'; padding-right: 0.5em; } -figure.code > div { +figure.fig-quote.pull-quote > blockquote { + font-size: 1.4rem; +} +figure.fig-code > div { margin: 0; } figure.subcontainer {