This repository has been archived by the owner on May 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 362
/
MarkdownPreview.sublime-settings
291 lines (242 loc) · 10.7 KB
/
MarkdownPreview.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
/*
Markdown Preview default settings
*/
{
/*
Sets the default opener for HTML files
default - Use the system default HTML viewer
other - Set a full path to any executable. ex: /Applications/Google Chrome Canary.app or /Applications/Firefox.app
*/
"browser": "default",
/*
Sets the parser used for building markdown to HTML.
NOTE: The parser setting is not for the preview commands.
The previews have separate commands for each parser markdown.
Warning for github API: if you have a ST2 linux build, Python is not built with SSL so it may not work
default - The current default parser is python-markdown parser.
markdown - Use the built-in python-markdown parser
github - Use the github API to convert markdown, so you can use GitHub flavored Markdown, see https://help.github.com/articles/github-flavored-markdown/
*/
"parser": "markdown",
/*
By default, Markdown Preview builds the HTML in the source directory.
It expects the file to exist on disk. It pops up the build output panel etc.
If you wish to override this behavior, you can change "build_action"
build - The default build behavior.
browser - Preview the file in your browser.
clipboard - Copy the HTML output to the clipboard.
sublime - Export the HTML to a Sublime tab.
save - Run the normal save command that outputs to the source directory.
It will also prompt for "save as" if the file does not exit on disk.
All the build options use the default parser defined above in "parser"
*/
"build_action": "build",
/*
If Pygments is being used, you may want to inject one of the Pygment styles provided into the HTML.
If so, enable this.
*/
"pygments_inject_css": true,
/*
Name of the Pygments style to inject. Available styles are the styles provided by pygments
plus "github" and "github2014".
*/
"pygments_style": "github",
/*
This is the class to prepend to the pygments CSS styles. Make sure it matches whatever class(es)
you've specified in the extension that controls Pygments highlighting. CodeHilite's default is
"codehilite".
*/
"pygments_css_class": "codehilite",
/*
Markdown extension configuration.
To specify a function in this JSON configuration, create an object with the key "!!python/name"
and set it to the import path to the function "module.submodule.etc.function".
*/
"markdown_extensions": [
// Python Markdown Extra with SuperFences.
// You can't include "extra" and "superfences"
// as "fenced_code" can not be included with "superfences",
// so we include the pieces separately.
"markdown.extensions.smart_strong",
"markdown.extensions.footnotes",
"markdown.extensions.attr_list",
"markdown.extensions.def_list",
"markdown.extensions.tables",
"markdown.extensions.abbr",
// Extra's Markdown parsing in raw HTML cannot be
// included by itself, but "pymdownx" exposes it so we can.
"pymdownx.extrarawhtml",
// More default Python Markdown extensions
{
"markdown.extensions.toc":
{
"permalink": "\ue157"
}
},
"markdown.extensions.meta",
"markdown.extensions.sane_lists",
"markdown.extensions.smarty",
"markdown.extensions.wikilinks",
"markdown.extensions.admonition",
// PyMdown extensions that help give a GitHub-ish feel
"pymdownx.superfences", // Nested fences and UML support
{
"pymdownx.magiclink": { // Auto linkify URLs and email addresses
"repo_url_shortener": true,
"repo_url_shorthand": true
}
},
"pymdownx.tasklist", // Task lists
{
"pymdownx.tilde": { // Provide ~~delete~~
"subscript": false
}
},
{
"pymdownx.emoji": { // Provide GitHub's emojis
"emoji_index": {"!!python/name": "pymdownx.emoji.gemoji"},
"emoji_generator": {"!!python/name": "pymdownx.emoji.to_png"},
"alt": "short",
"options": {
"attributes": {
"align": "absmiddle",
"height": "20px",
"width": "20px"
},
"image_path": "https://assets-cdn.github.com/images/icons/emoji/unicode/",
"non_standard_image_path": "https://assets-cdn.github.com/images/icons/emoji/"
}
}
}
],
/*
Enabled parsers for the parser "select parser" command
Available parsers: markdown, github
When there are more than one parser in the list, Sublime will prompt
via the quick panel for which one to use. If there is only one, it
will automatically run that parser.
*/
"enabled_parsers": ["markdown", "github"],
/*
Custom external markdown parsers.
"markdown_binary_map" contains key values pairs. The key
is name of the parser and what is used in "enabled_parsers"
to turn on the access to the parser. The value is an array
containing the path to the binary and all the parameters that
are desired.
Multimarkdown is provided as an example below. It's path may differ
on your system.
*/
"markdown_binary_map": {
"multimarkdown": ["/usr/local/bin/multimarkdown"]
},
/*
Default mode for the github Markdown parser : markdown (documents) or gfm (comments)
see http://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document
*/
"github_mode": "markdown",
/*
Enables a post process to inject header ids to ensure hrefs to headers work
*/
"github_inject_header_ids": false,
/*
Uses an OAuth token when parsing markdown with GitHub API. To create one for Markdown Preview, see https://help.github.com/articles/creating-an-oauth-token-for-command-line-use.
Warn: this secret *must not be shared* with anyone and at least you should create it with minimal scopes for security reasons.
*/
// "github_oauth_token": "secret",
/*
Sets the default css file to embed in the HTML
default - Use the builtin CSS or github CSS, depending on parser config (markdown.css or github.css)
other - Set an absolute path or url to any css file
Should be an array, but will take a single string to support legacy convention.
*/
"css": ["default"],
/*
Allow CSS overrides
true - Any file with matching a .markdown_filetype extension with .css will be loaded as an override
false - Matching files ignored
*/
"allow_css_overrides": true,
/*
Specify a HTML template file to render your markdown within.
Available place holders in HTML template:
{{ HEAD }} - would be replaced by generated stylesheets, javascripts enabled above
{{ BODY }} - would be replaced by HTML converted from markdown
Remove "default" from "css" setting to avoid injecting the default CSS if desired.
Refer to 'customized-template-sample.html' as a show case.
*/
"html_template": "",
/*
Sets the JavaScript files to embed in the HTML
Set an array of URLs or filepaths to JavaScript files. Absolute filepaths will be loaded
into the script tag; others will be set as the `src` attribute. The order of files in the
array is the order in which they are embedded.
*/
"js": [],
/*
Enable auto-reloaded on save. Will not work if GitHub parser is used without oauth key specified.
*/
"enable_autoreload": true,
/*
Sets the supported filetypes for auto-reload on save
*/
"markdown_filetypes": [".md", ".markdown", ".mdown"],
/*
Sets a custom temporary folder for MarkdownPreview-generated HTML files. Useful if you're
using LiveReload and don't want to use the OS default. The directory will be created if it
doesn't exist. Relative paths are supported, and are checked against `os.path.isabs`, see
doc: http://docs.python.org/3/library/os.path.html#os.path.isabs
Examples: /tmp/custom_folder (Linux/OSX - absolute path)
C:/TEMP/MYNOTES
C:\\TEMP\\MYNOTES (Windows - absolute path, forward slash or escaped back slash)
build (All OS - relative path, current dir)
../build (Linux/OSX - relative path, in parent dir)
..\\build (Windows - relative path, in parent dir)
*/
"path_tempfile": "",
/*
Sets HTML output to a simple form:
- No head
- No body tags
- ids, classes, and style are stripped out
- Just bare minimum HTML tags and attributes
- extension modifications included
*/
"html_simple": false,
/*
Sets how image paths are handled.
Setting is a string value: (absolute | relative | base64 | none)
absolute: converts relative local paths to absolute
relative: converts relative local paths to a path relative to the
HTML output
base64: coverts the local file to base64 and embeds it in the HTML
none: does nothing
*/
"image_path_conversion": "absolute",
/*
Sets how file paths are handled.
Setting is a string value: (absolute | relative | none)
absolute: converts relative local paths to absolute
relative: converts relative local paths to a path relative to the
HTML output
none: does nothing
*/
"file_path_conversions": "absolute",
/*
Sets how multimarkdown critic marks are handled.
Setting is a string value: (accept | reject | none)
accept: Accepts the proposed inserts and deletions (comments etc. are discarded)
reject: Rejects the proposed inserts and deletions (comments etc. are discarded)
none: does nothing
Critic marks only affects "github" and "markdown" (Python Markdown).
*/
"strip_critic_marks": "none",
/*
Strips the YAML front matter header and converts title to a heading
*/
"strip_yaml_front_matter": false,
/* do we show the panel when building with CMD+B */
"show_panel_on_build": true,
/* do we include the CSS when outputting HTML? */
"include_head": ["build", "browser", "sublime", "clipboard", "save"]
}