diff --git a/.changeset/fifty-bears-guess.md b/.changeset/fifty-bears-guess.md new file mode 100644 index 000000000..9198c6fc4 --- /dev/null +++ b/.changeset/fifty-bears-guess.md @@ -0,0 +1,5 @@ +--- +'myst-to-react': patch +--- + +Add span and fix citation link styles diff --git a/packages/myst-to-react/src/basic.tsx b/packages/myst-to-react/src/basic.tsx index 01d6e7d01..60140b585 100644 --- a/packages/myst-to-react/src/basic.tsx +++ b/packages/myst-to-react/src/basic.tsx @@ -43,6 +43,7 @@ type CaptionNumber = { type BasicNodeRenderers = { text: NodeRenderer; + span: NodeRenderer; strong: NodeRenderer; emphasis: NodeRenderer; link: NodeRenderer; @@ -82,6 +83,14 @@ const BASIC_RENDERERS: BasicNodeRenderers = { text({ node }) { return <>{node.value}; }, + span({ node }) { + // style={node.style} + return ( + + + + ); + }, delete({ node }) { return ( diff --git a/packages/myst-to-react/src/cite.tsx b/packages/myst-to-react/src/cite.tsx index 4cb208f61..95677b56b 100644 --- a/packages/myst-to-react/src/cite.tsx +++ b/packages/myst-to-react/src/cite.tsx @@ -54,7 +54,7 @@ export const Cite = ({ {children} )} - {!doiUrl && children} + {!doiUrl && {children}} );