DenReg/markdown/example.md
Fabian Stamm 1b2d85eeef
All checks were successful
continuous-integration/drone/push Build is passing
Adding hotfixes for packages
2020-10-14 02:56:11 +02:00

746 B

title subtitle boolean list-example
Hello world! Front-matter is supported! true
this
is
a
list

Hello World

This an example for md2html.ts

A small paragraph that will become a <p> tag


Code Block (md2html.ts)

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));

This module is forked from ts-stack/markdown

Made for Deno deno-logo