Skip to main content
Module

x/markdown/md2html.ts

Deno Markdown module forked from https://github.com/ts-stack/markdown/tree/bb47aa8e625e89e6aa84f49a98536a3089dee831
Latest
File
import { Marked } from "./mod.ts";
const decoder = new TextDecoder("utf-8");const filename = Deno.args[0];const markdown = decoder.decode(await Deno.readFile(filename));const markup = Marked.parse(markdown);console.log(markup.content);console.log(JSON.stringify(markup.meta))