Markdown學習

標題

 用 # 標題,有一到五級標題 ##, ###, ####, #####

加粗

  用 **加粗**

斜體

  用 *斜體*, ***加粗并斜體***

層次

用這個* 一層
- 二層
+ 三層

有序

  1. 1 , 2. 2 加上阿拉伯數字就行

鏈接

Jack,用這個 [***Jack ***]
(http://www.baidu.com)
[顯示文本] (鏈接地址)
無鏈接

圖片

 [圖片上傳失敗...(image-abf349-1510216401518)]

分割線

 用這個---

鼠標移上去提示

引用

  > 你好,明天

你好,明天

代碼引用

 我 `String title = (String) request.getAttribute("title");` 他

String title = (String) request.getAttribute("title");

多段代碼引用

用三個```上下
String primaryKey = this.getDs().getPrimaryKeyField();
if (primaryKey == null) {
    throw new LfwRuntimeException("當前Dataset沒有設置主鍵!");
}

加空格

 ????我前面的是空格

sublime中安裝markdown插件

  1. 安裝 Package Control
  1. Markdown Editing

preferences -> Package Control -> Package Control: Install Package

  • 快捷鍵 Ctrl+Shift+P,輸入pci
  • 輸入Markdown Editing安裝
  1. Markdown Preview
  • 輸入Markdown Preview安裝
  • 使用 Ctrl+Shift+P,輸入mp,選擇在瀏覽器打開
  • Ctrl+B就可以轉為html
  1. 修改配置
  • 菜單 –> Preferences –> Package Settings –> Markdown preview –> Settings - Default , Ctrl+A 復制全部內容
  • 菜單 –> Preferences –> Package Settings –> Markdown preview –> Settings - User , Ctrl+V 粘貼
    修改以下三項
    • "build_action": "browser",
    • "file_path_conversions": "relative",
    • "image_path_conversion": "relative",
  • 另外有個 Markdown Building 插件也是做相同的事情
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容