This commit is contained in:
Zef Hemel
2023-01-01 11:28:25 -08:00
committed by GitHub
parent 8d3688b2fd
commit e4ebaa2cf4
9 changed files with 24 additions and 10 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import { createSandbox } from "../../plugos/environments/deno_sandbox.ts";
import { loadMarkdownExtensions } from "../../common/markdown_parser/markdown_ext.ts";
import { renderMarkdownToHtml } from "./markdown_render.ts";
import { assertEquals } from "../../test_deps.ts";
import { urlToPathname } from "../../plugos/util.ts";
Deno.test("Markdown render", async () => {
const system = new System<any>("server");
@@ -19,7 +20,7 @@ Deno.test("Markdown render", async () => {
await system.load(tasksPlug, createSandbox);
const lang = buildMarkdown(loadMarkdownExtensions(system));
const testFile = Deno.readTextFileSync(
new URL("test/example.md", import.meta.url).pathname,
urlToPathname(new URL("test/example.md", import.meta.url)),
);
const tree = parse(lang, testFile);
renderMarkdownToHtml(tree, {