markdown
标题
代码
#include <cstdio>
int main () {
return 0;
}
行间公式
\[y = \frac{1}{x}\sum_{i=1}^{n}{x_i}
\]
行内公式
公式:$ y = \frac{1}{x}\sum_{i=1}^{n}{x_i} $
(GitHub-Flavored) Markdown Editor
Basic useful feature list:
- Ctrl+S / Cmd+S to save the file
- Ctrl+Shift+S / Cmd+Shift+S to choose to save as Markdown or HTML
- Drag and drop a file into here to load it
- File contents are saved in the URL so you can share files
I'm no good at writing sample / filler text, so go write something yourself.
Look, a list!
- foo
- bar
- baz
And here's some code! 👍
$(function(){
$('div').html('I am a div.');
});
This is on GitHub so let me know if I've b0rked it somewhere.
Props to Mr. Doob and his code editor, from which
the inspiration to this, and some handy implementation hints, came.
Stuff used to make this:
- markdown-it for Markdown parsing
- CodeMirror for the awesome syntax-highlighted editor
- highlight.js for syntax highlighting in output code blocks
- js-deflate for gzipping of data to make it fit in URLs
这里是引用