Skip to content

Commit

Permalink
html block compiler tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jennspencer committed Jun 16, 2024
1 parent a04b5d2 commit 5a543fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/compile/html-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HTMLBlock } from '../../types';
const htmlBlock = (node: HTMLBlock) => {
const { runScripts, html } = node.data.hProperties;

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

export default htmlBlock;

0 comments on commit 5a543fc

Please sign in to comment.