Adding hotfixes for packages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
8
markdown/md2html.ts
Normal file
8
markdown/md2html.ts
Normal file
@ -0,0 +1,8 @@
|
||||
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))
|
Reference in New Issue
Block a user