From e0b86d1767932d3f9aab218103f25a9f92a87036 Mon Sep 17 00:00:00 2001 From: Nael Shiab Date: Fri, 11 Oct 2024 11:10:20 -0400 Subject: [PATCH] Fixing framework with deno --- simple-data-analysis.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/simple-data-analysis.mjs b/simple-data-analysis.mjs index 192d7bf..7b23439 100755 --- a/simple-data-analysis.mjs +++ b/simple-data-analysis.mjs @@ -290,10 +290,10 @@ export default function createChart( } `; - const getHighlightedCodeTs = `import { FileAttachment } from "@observablehq/stdlib"; -import { html } from "htl"; -import hljs from "highlight.js/lib/core"; -import typescript from "highlight.js/lib/languages/typescript"; + const getHighlightedCodeTs = `import { FileAttachment } from "npm:@observablehq/stdlib"; +import { html } from "npm:htl"; +import hljs from "npm:highlight.js/lib/core"; +import typescript from "npm:highlight.js/lib/languages/typescript"; hljs.registerLanguage("typescript", typescript); @@ -315,6 +315,7 @@ export default async function getHighlightedCode(file: FileAttachment) { return wrappedCode; } + `; const getTempChangeTs = `import { formatNumber } from "journalism";