工具
单说写作体验上,简书上写markdown的体验是我用过最好的,如果要写博客啥的,简直爽的不要不要的。但是工作中我们的md文件都是放在我们的git仓库中,能够以文件夹管理我们的md文件也挺重要。这里我推荐用sublime,配合三款插件用起来也不错。MarkdownEditing和OmniMarkupPreviewer介绍Sublime3下两款Markdown插件,还有一款是Markdown Light,它的高亮样式我比较喜欢。
OmniMarkupPreviewer配置
OmniMarkupPreviewer默认的配置就够了,如果想要更好的显示效果。请使用如下的用户配置:
/* OmniMarkupPreviewer default setting, DO NOT MODIFY */
{
"server_host": "127.0.0.1",
"server_port": 51004,
"refresh_on_modified": true,
// delay after modified, in milliseconds
"refresh_on_modified_delay": 500,
"refresh_on_saved": true,
// User defined command for launching preview in web browser
// For example:
// Launching preview using Google Chrome in OS X:
// ["open", "-a", "Google Chrome", "{url}"]
"browser_command": [],
// User public static files should be placed into
// ${packages}/User/OmniMarkupPreviewer/public/
// User templates should be placed into:
// ${packages}/User/OmniMarkupPreviewer/templates/
// Requires browser reload
// Built-in templates: github, github-v1
"html_template_name": "github",
// Polling interval for content changes in web browsers, in milliseconds
// Requires browser reload
"ajax_polling_interval": 500,
// list of renderers to be ignored, case sensitive.
// Valid renderers are: "CreoleRenderer", "MarkdownRenderer", "PodRenderer",
// "RDocRenderer", "RstRenderer", "TextitleRenderer"
// for example, to disable Textile and Pod renderer:
// "ignored_renderers": ["TextitleRenderer", "PodRenderer"]
"ignored_renderers": ["LiterateHaskellRenderer"],
// Enable MathJax (http://www.mathjax.org/)
// MathJax javascript libraries will downloaded automatically, it may take some while.
// When MathJax is properly installed into OmniMarkupPreviewer/public/mathjax, you
// have to reload your browser to get mathjax work.
// KNOWN ISSUES:
// * It may be slow base on your computer/browser performance, so you may want to
// tune the following options:
// "ajax_polling_interval", "refresh_on_modified" and "refresh_on_modified_delay"
"mathjax_enabled": false,
// Custom options for exporting
"export_options" : {
// follow "html_template_name" rules
// Built-in templates: github-export, github-v1-export
"template_name": "github-export",
// ".": export to the same folder as markup file.
// null: export to system temp folder.
// NOTE: folder shall exist, or it will fallback to system temp folder.
"target_folder": ".",
// format string for filename timestamp
"timestamp_format" : "_%y%m%d%H%M%S",
"copy_to_clipboard": false,
// Open with default browser or whatever customized in "browser_command".
"open_after_exporting": false
},
// MarkdownRenderer options
"renderer_options-MarkdownRenderer": {
// Valid extensions:
// - OFFICIAL (Python Markdown) -
// "extra": Combines ["abbr", "attr_list", "def_list", "fenced_code", "footnotes", "tables", "smart_strong"]
// For PHP Markdown Extra(http://michelf.ca/projects/php-markdown/extra/)
// "abbr": http://packages.python.org/Markdown/extensions/abbreviations.html
// "attr_list": http://packages.python.org/Markdown/extensions/attr_list.html
// "def_list": http://packages.python.org/Markdown/extensions/definition_lists.html
// "fenced_code": http://packages.python.org/Markdown/extensions/fenced_code_blocks.html
// "footnotes": http://packages.python.org/Markdown/extensions/footnotes.html
// "tables": http://packages.python.org/Markdown/extensions/tables.html
// "smart_strong": http://packages.python.org/Markdown/extensions/smart_strong.html
// "codehilite": http://packages.python.org/Markdown/extensions/code_hilite.html
// "meta": http://packages.python.org/Markdown/extensions/meta_data.html
// "toc": http://packages.python.org/Markdown/extensions/toc.html
// "nl2br": http://packages.python.org/Markdown/extensions/nl2br.html
// - 3RD PARTY -
// "strikeout": Strikeout extension syntax - `This ~~is deleted text.~~`
// "subscript": Subscript extension syntax - `This is water: H~2~O`
// "superscript": Superscript extension syntax 0 `2^10^ = 1024`
// "smarty" or "smartypants": Python-Markdown extension using smartypants to emit
// typographically nicer ("curly") quotes, proper
// ("em" and "en") dashes, etc.
// See: http://daringfireball.net/projects/smartypants/
// And: https://github.com/waylan/Python-Markdown/blob/master/docs/extensions/smarty.txt
"extensions": ["extra", "codehilite", "toc", "strikeout", "smarty", "subscript", "superscript"]
}
}
图床
简书本身就是很好的图床,写博客的话挺好的。但是如果是工作中,我们希望能有更稳定的图床,综合各种因素,用七牛云作为markdown的图床,并且配极简图床作为图床工具,贴图也很快。