feat(ST2.EditorPackages): bump up all packages
- Refresh PackageCache with latest versions of everything
This commit is contained in:
@@ -3,16 +3,16 @@ 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][ST2] along with the [Markdown Preview plugin][MarkdownPreview], open your ST2 Palette with `CMD+P` then choose `Markdown Preview in browser` to see the result in your browser.
|
||||
If you use the fabulous [Sublime Text 2/3 editor][ST] along with the [Markdown Preview plugin][MarkdownPreview], open your ST2 Palette with `CMD+P` then choose `Markdown Preview in browser` to see the result in your browser.
|
||||
|
||||
## Text basics
|
||||
this is *italic* and this is **bold** . another _italic_ and another __bold__
|
||||
|
||||
this is `important` text. and percentage signs : % and `%`
|
||||
|
||||
This is a paragraph with a footnote (builtin parser only). [^note-id]
|
||||
This is a paragraph with a footnote (builtin parser only). [^note-id]
|
||||
|
||||
Insert `[ toc ]` without spaces to generate a table of contents (builtin parser only).
|
||||
Insert `[ toc ]` without spaces to generate a table of contents (builtin parsers only).
|
||||
|
||||
## Indentation
|
||||
> Here is some indented text
|
||||
@@ -65,12 +65,26 @@ 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.
|
||||
Also, any indented block is considered a code block. If `enable_highlight` is `true`, syntax highlighting will be included (for the builtin parser - the github parser does this automatically).
|
||||
|
||||
<script>
|
||||
document.location = 'http://lmgtfy.com/?q=markdown+cheat+sheet';
|
||||
</script>
|
||||
|
||||
## Math
|
||||
|
||||
When `enable_mathjax` is `true`, inline math can be included \\(\frac{\pi}{2}\\) $\pi$
|
||||
|
||||
Alternatively, math can be written on its own line:
|
||||
|
||||
$$F(\omega) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty} f(t) \, e^{ - i \omega t}dt$$
|
||||
|
||||
\\[\int_0^1 f(t) \mathrm{d}t\\]
|
||||
|
||||
\\[\sum_j \gamma_j^2/d_j\\]
|
||||
|
||||
|
||||
|
||||
## GitHub Flavored Markdown
|
||||
|
||||
If you use the Github parser, you can use some of [Github Flavored Markdown][gfm] syntax :
|
||||
@@ -115,6 +129,187 @@ The Github Markdown also brings some [nice Emoji support][emoji] : :+1: :heart:
|
||||
|
||||
[^note-id]: This is the text of the note.
|
||||
|
||||
## Parsers and Extensions
|
||||
|
||||
Markdown Preview comes with **Python-Markdown** and **Markdown2** preloaded.
|
||||
|
||||
### *Python-Markdown*
|
||||
|
||||
The [Python-Markdown Parser][] provides support for several extensions.
|
||||
|
||||
[Python-Markdown Parser]: https://github.com/waylan/Python-Markdown
|
||||
|
||||
#### Extra Extensions
|
||||
|
||||
* `abbr` -- [Abbreviations][]
|
||||
* `attr_list` -- [Attribute Lists][]
|
||||
* `def_list` -- [Definition Lists][]
|
||||
* `fenced_code` -- [Fenced Code Blocks][]
|
||||
* `footnotes` -- [Footnotes][]
|
||||
* `tables` -- [Tables][]
|
||||
* `smart_strong` -- [Smart Strong][]
|
||||
|
||||
[Abbreviations]: http://pythonhosted.org/Markdown/extensions/abbreviations.html
|
||||
[Attribute Lists]: http://pythonhosted.org/Markdown/extensions/attr_list.html
|
||||
[Definition Lists]: http://pythonhosted.org/Markdown/extensions/definition_lists.html
|
||||
[Fenced Code Blocks]: http://pythonhosted.org/Markdown/extensions/fenced_code_blocks.html
|
||||
[Footnotes]: http://pythonhosted.org/Markdown/extensions/footnotes.html
|
||||
[Tables]: http://pythonhosted.org/Markdown/extensions/tables.html
|
||||
[Smart Strong]: http://pythonhosted.org/Markdown/extensions/smart_strong.html
|
||||
|
||||
|
||||
You can enable them all at once using the `extra` keyword.
|
||||
|
||||
extensions: [ 'extra' ]
|
||||
|
||||
If you want all the extras plus the `toc` extension,
|
||||
your settings would look like this:
|
||||
|
||||
{
|
||||
...
|
||||
parser: 'markdown',
|
||||
extensions: ['extra', 'toc'],
|
||||
...
|
||||
}
|
||||
|
||||
|
||||
#### Other Extensions
|
||||
|
||||
There are also some extensions that are not included in Markdown Extra
|
||||
but come in the standard Python-Markdown library.
|
||||
|
||||
* `code-hilite` -- [CodeHilite][]
|
||||
* `html-tidy` -- [HTML Tidy][]
|
||||
* `header-id` -- [HeaderId][]
|
||||
* `meta_data` -- [Meta-Data][]
|
||||
* `nl2br` -- [New Line to Break][]
|
||||
* `rss` -- [RSS][]
|
||||
* `sane_lists` -- [Sane Lists][]
|
||||
* `toc` -- [Table of Contents][]
|
||||
* `wikilinks` -- [WikiLinks][]
|
||||
|
||||
[CodeHilite]: http://pythonhosted.org/Markdown/extensions/code_hilite.html
|
||||
[HTML Tidy]: http://pythonhosted.org/Markdown/extensions/html_tidy.html
|
||||
[HeaderId]: http://pythonhosted.org/Markdown/extensions/header_id.html
|
||||
[Meta-Data]: http://pythonhosted.org/Markdown/extensions/meta_data.html
|
||||
[New Line to Break]: http://pythonhosted.org/Markdown/extensions/nl2br.html
|
||||
[RSS]: http://pythonhosted.org/Markdown/extensions/rss.html
|
||||
[Sane Lists]: http://pythonhosted.org/Markdown/extensions/sane_lists.html
|
||||
[Table of Contents]: http://pythonhosted.org/Markdown/extensions/toc.html
|
||||
[WikiLinks]: http://pythonhosted.org/Markdown/extensions/wikilinks.html
|
||||
|
||||
#### 3rd Party Extensions
|
||||
|
||||
|
||||
*Python-Markdown* is designed to be extended.
|
||||
Just fork this repo and add your extensions inside the `.../Packages/Markdown Preview/markdown/extensions/` folder.
|
||||
|
||||
Check out the list of [3rd Party extensions](
|
||||
https://github.com/waylan/Python-Markdown/wiki/Third-Party-Extensions).
|
||||
|
||||
|
||||
#### Default Extensions
|
||||
|
||||
The default extensions are:
|
||||
|
||||
* `footnotes` -- [Footnotes]
|
||||
* `toc` -- [Table of Contents]
|
||||
* `fenced_code` -- [Fenced Code Blocks]
|
||||
* `tables` -- [Tables]
|
||||
|
||||
Use the `default` keyword, to select them all.
|
||||
If you want all the defaults plus the `definition_lists` extension,
|
||||
your settings would look like this:
|
||||
|
||||
{
|
||||
...
|
||||
parser: 'markdown',
|
||||
extensions: ['default', 'definition_lists'],
|
||||
...
|
||||
}
|
||||
|
||||
|
||||
### *Markdown2*
|
||||
|
||||
The [Markdown2 Parser][] also provides support for extensions, known as [Extras][].
|
||||
You can configure the list of extras you want to use inside the package settings.
|
||||
|
||||
[Markdown2 Parser]: https://github.com/trentm/python-markdown2
|
||||
|
||||
|
||||
#### Default Extras
|
||||
|
||||
The default extras are:
|
||||
|
||||
* `footnotes` -- [Footnotes][Footnotes Extra]
|
||||
* `toc` -- Table of Contents
|
||||
* `fenced-code-blocks` -- [Fenced CodeBlocks][]
|
||||
* `cuddled-lists` -- [Cuddled Lists][]
|
||||
|
||||
[Footnotes Extra]: https://github.com/trentm/python-markdown2/wiki/footnotes
|
||||
[Fenced CodeBlocks]: https://github.com/trentm/python-markdown2/wiki/fenced-code-blocks
|
||||
[Cuddled Lists]: https://github.com/trentm/python-markdown2/wiki/cuddled-lists
|
||||
|
||||
|
||||
You can enable all default extras at once using the `default` keyword.
|
||||
If you want all the default extras plus the 'wiki-table' extra,
|
||||
your settings would look like this:
|
||||
|
||||
{
|
||||
...
|
||||
parser: 'markdown2',
|
||||
extensions: ['default', 'wiki-table'],
|
||||
...
|
||||
}
|
||||
|
||||
|
||||
#### Other Extras
|
||||
|
||||
For a complete list of extras please checkout the [Extras Wiki Page][Extras].
|
||||
|
||||
[Extras]: https://github.com/trentm/python-markdown2/wiki/Extras
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
### Tables
|
||||
|
||||
The `tables` extension of the *Python-Markdown* parser is activated by default,
|
||||
but is currently **not** available in *Markdown2*.
|
||||
|
||||
The syntax was adopted from the [php markdown project](http://michelf.ca/projects/php-markdown/extra/#table),
|
||||
and is also used in github flavoured markdown.
|
||||
|
||||
| Year | Temperature (low) | Temperature (high) |
|
||||
| ---- | ----------------- | -------------------|
|
||||
| 1900 | -10 | 25 |
|
||||
| 1910 | -15 | 30 |
|
||||
| 1920 | -10 | 32 |
|
||||
|
||||
|
||||
### Wiki Tables
|
||||
|
||||
If you are using *Markdown2* with the `wiki-tables` extra activated you should see a table below:
|
||||
|
||||
|| *Year* || *Temperature (low)* || *Temperature (high)* ||
|
||||
|| 1900 || -10 || 25 ||
|
||||
|| 1910 || -15 || 30 ||
|
||||
|| 1920 || -10 || 32 ||
|
||||
|
||||
|
||||
### Definition Lists
|
||||
|
||||
This example requires *Python Markdown*'s `def_list` extension.
|
||||
|
||||
Apple
|
||||
: Pomaceous fruit of plants of the genus Malus in
|
||||
the family Rosaceae.
|
||||
|
||||
Orange
|
||||
: The fruit of an evergreen tree of the genus Citrus.
|
||||
|
||||
|
||||
## About
|
||||
|
||||
This plugin and this sample file is proudly brought to you by the [revolunet team][revolunet]
|
||||
@@ -123,7 +318,7 @@ This plugin and this sample file is proudly brought to you by the [revolunet tea
|
||||
[ref2]: http://revolunet.com "rich web apps"
|
||||
[MarkdownREF]: http://daringfireball.net/projects/markdown/basics
|
||||
[MarkdownPreview]: https://github.com/revolunet/sublimetext-markdown-preview
|
||||
[ST2]: http://sublimetext.com
|
||||
[ST]: http://sublimetext.com
|
||||
[revolunet]: http://revolunet.com
|
||||
[revolunet-logo]: http://www.revolunet.com/static/parisjs8/img/logo-revolunet-carre.jpg "revolunet logo"
|
||||
[gfm]: http://github.github.com/github-flavored-markdown/
|
||||
|
Reference in New Issue
Block a user