markdown cheatsheat in markdown preview plugin of sublimex
来源:互联网 发布:手机点读软件 编辑:程序博客网 时间:2024/05/17 01:54
Sample Markdown Cheat Sheet
This is a sample markdown file to help you write Markdown quickly :)
If you use the fabulous Sublime Text 2 editor along with theMarkdown Preview plugin, open your ST2 Palette withCMD+P
then chooseMarkdown Preview in browser
to see the result in your browser.
Text basics
this is italic and this is bold . another italic and anotherbold
this is important
text. and percentage signs : % and %
This is a paragraph with a footnote (builtin parser only). 1
Insert [ toc ]
without spaces to generate a table of contents (builtin parser only).
- Sample Markdown Cheat Sheet
- Text basics
- Indentation
- Titles
- Big title (h1)
- Middle title (h2)
- Smaller title (h3)
- and so on (hX)
- and so on (hX)
- and so on (hX)
- and so on (hX)
- and so on (hX)
- Smaller title (h3)
- Example lists (1)
- Links
- Images
- Code
- GitHub Flavored Markdown
- About
- Middle title (h2)
Indentation
Here is some indented text
even more indented
Titles
Big title (h1)
Middle title (h2)
Smaller title (h3)
and so on (hX)
and so on (hX)
and so on (hX)
Example lists (1)
- bullets can be
-
,+
, or*
- bullet list 1
bullet list 2
- sub item 1
sub item 2
with indented text inside
bullet list 3
- bullet list 4
- bullet list 5
Links
This is an example inline link and another one with a title.
Links can also be reference based : reference 1 orreference 2 with title.
References are usually placed at the bottom of the document
Images
A sample image :
As links, images can also use references instead of inline links :
Code
It's quite easy to show code in markdown files.
Backticks can be used to highlight
some words.
Also, any indented block is considered a code block.
<script> document.location = 'http://lmgtfy.com/?q=markdown+cheat+sheet';</script>
GitHub Flavored Markdown
If you use the Github parser, you can use some of Github Flavored Markdown syntax :
- User/Project@SHA: revolunet/sublimetext-markdown-preview@7da61badeda468b5019869d11000307e07e07401
- User/Project#Issue: revolunet/sublimetext-markdown-preview#1
- User : @revolunet
Some Python code :
import randomclass CardGame(object): """ a sample python class """ NB_CARDS = 32 def __init__(self, cards=5): self.cards = random.sample(range(self.NB_CARDS), 5) print 'ready to play'
Some Javascript code :
var config = { duration: 5, comment: 'WTF'}// callbacks beauty un actionasync_call('/path/to/api', function(json) { another_call(json, function(result2) { another_another_call(result2, function(result3) { another_another_another_call(result3, function(result4) { alert('And if all went well, i got my result :)'); }); }); });})
The Github Markdown also brings some nice Emoji support : :+1: :heart: :beer:
About
This plugin and this sample file is proudly brought to you by the revolunet team
This is the text of the note. ↩
- markdown cheatsheat in markdown preview plugin of sublimex
- [Markdown]sublime markdown preview使用
- vim-markdown & Markdown Preview Plus
- NotePad使用markdown Preview
- Markdown Preview 刷新无效
- Sublime Text 2/3 Markdown Preview
- atom:markdown-preview-enhanced插件报错
- atom安装markdown-preview-enhanced和markdown-pdf插件
- Markdown in action
- Markdown
- markdown
- Markdown
- markdown
- Markdown
- markdown
- Markdown
- Markdown
- markdown
- 原谅我今天才学会使用win32的按键消息处理!
- 什么是java序列化,如何实现java序列化?
- Outlook最小到系统托盘
- golang中的defer panic recover
- BOS 使得打开UI界面最大化 实现
- markdown cheatsheat in markdown preview plugin of sublimex
- 为明天上午的百度面试做准备
- chkrootkit安装配置教程 – Linux后门入侵检测
- ubuntu 命令行模式和图形界面切换
- 前端 CSS 规范大全
- Date、String和Timestamp类型转换
- Windows消息
- 《C++ primer》第11章 泛型算法
- android AsyncTask下载并更新进度条运用例子