Skip to content

Commit

Permalink
Merge branch 'blocks' of https://github.com/theyande/scradd into blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheYande committed Sep 19, 2024
2 parents 6dcf6cf + ee10b02 commit 095e588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const xmlEscape = (unsafe: string): string => {
return unsafe.replace(/[<>&'"]/g, (c) => escapeMap[c] as any);
};

export async function scratchBlocksToImage(text: string, style:string) {
export async function scratchBlocksToImage(text: string, style: string) {
const window = new JSDOM(`<pre class='blocks'>${xmlEscape(text)}</pre>`);
const scratchBlocksInstance = scratchblocks(window.window);
scratchBlocksInstance.appendStyles();
Expand Down

0 comments on commit 095e588

Please sign in to comment.