diff --git a/packages/myst-to-react/src/basic.tsx b/packages/myst-to-react/src/basic.tsx index 1630d7b5d..17de02f09 100644 --- a/packages/myst-to-react/src/basic.tsx +++ b/packages/myst-to-react/src/basic.tsx @@ -46,6 +46,10 @@ type Aside = { type: 'aside'; }; +type Keyboard = { + type: 'keyboard'; +}; + type BasicNodeRenderers = { text: NodeRenderer; span: NodeRenderer; @@ -79,6 +83,7 @@ type BasicNodeRenderers = { captionNumber: NodeRenderer; delete: NodeRenderer; underline: NodeRenderer; + keyboard: NodeRenderer; smallcaps: NodeRenderer; // definitions definitionList: NodeRenderer; @@ -375,6 +380,13 @@ const BASIC_RENDERERS: BasicNodeRenderers = { ); }, + keyboard({ node }) { + return ( + + + + ); + }, }; export default BASIC_RENDERERS;