Skip to content

Commit

Permalink
revert tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jennspencer committed Jun 17, 2024
1 parent 7e0233f commit 3e54110
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const makeUseMDXComponents = (more: ReturnType<UseMdxComponents> = {}): UseMdxCo
table: Components.Table,
'code-tabs': Components.CodeTabs,
'embed-block': Components.Embed,
'html-block': Components.HTMLBlock,
'image-block': Components.Image,
'table-of-contents': Components.TableOfContents,
// @ts-expect-error
Expand Down
2 changes: 1 addition & 1 deletion processor/compile/html-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const htmlBlock = (node: HTMLBlock) => {
const { runScripts, html } = getHProps<HTMLBlock['data']['hProperties']>(node);

return `<HTMLBlock${runScripts != null ? ` runScripts="${runScripts}"` : ''}>{\`
${ reformatHTML(html) }
${ reformatHTML(html) }
\`}</HTMLBlock>`;
}

Expand Down
2 changes: 1 addition & 1 deletion processor/transform/readme-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const coerceJsxToMd =
children: [{ type: 'text', value: html }],
type: NodeTypes.htmlBlock,
data: {
hName: 'HTMLBlock',
hName: 'html-block',
hProperties: {
...(runScripts && { runScripts }),
html,
Expand Down
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface HTMLBlock extends Node {
type: NodeTypes.htmlBlock;
children: Text[];
data: Data & {
hName: 'HTMLBlock';
hName: 'html-block';
hProperties: {
runScripts?: boolean | string;
html: string;
Expand Down

0 comments on commit 3e54110

Please sign in to comment.