Marked lets you convert Markdown into HTML. Markdown is a simple text format whose goal is to be very easy to read and write, even when not converted to HTML. This demo page will let you type anything you like and see how it gets converted. Live. No more waiting around.
How To Use The Demo
Type in stuff on the left.
See the live updates on the right.
That's it. Pretty simple. There's also a drop-down option above to switch between various views:
Preview: A live display of the generated HTML as it would render in a browser.
HTML Source: The generated HTML before your browser makes it pretty.
Lexer Data: What marked uses internally, in case you like gory stuff like this.
Quick Reference: A brief run-down of how to format things using markdown.
标题h3
Why Markdown?
It's easy. It's not overly bloated, unlike HTML. Also, as the creator of markdown says,
The overriding design goal for Markdown's
formatting syntax is to make it as readable
as possible. The idea is that a
Markdown-formatted document should be
publishable as-is, as plain text, without
looking like it's been marked up with tags
or formatting instructions.
标题3
Ready to start writing? Either start changing stuff on the left or
clear everything with a simple click.
TASK LIST
foo
bar
baz
bim
CODE BLOCK
// 第 3 版规范的最终设计try { doSomething();} catch (e) { if (e == "thing") console.log("a thing") else if (e == 42) console.log("42") else { console.log(e); throw e; // 重新 throw }} finally { cleanup();}