Mdmdt主题演示demo
关于Mdmdt主题
Mdmdt 是markdown minimalism document theme 的缩写,意为:Markdown极简文档主题。
Mdmdt[^1]是深度定制的个性化Typora主题,其目的是打造一个清爽极简的文档样式。
[!NOte]
**注意:**mdmdd.css 文件中包含了亮色和暗色两者主题,会跟随系统模式自动切换亮暗主题
this is code style
文本
这些是文本样式效果: 这是超链接,  这是加粗文本,  这是斜体字,  this is code style , 这是下划线样式,   这是删除线效果,   ==这是文字高亮效果==, 上下标: $\LaTeX$, X^2^, H~2~O,    这是鼠标选中效果 , Command+Q  🐳 😀 🇨🇳
[链接引用]: https://github.com/cayxc/mdmdt	“链接标题”
[^1]: Forked from https://github.com/cayxc/mdmdt
$$ LATEX: \sum_0^{\infty} x^2+1$$
列表
这些是列表样式效果:
- 这是有序列表 A
 - 这是有序列表 B
 
- This is Item 1.
 - This is Item 2.
 - [ ] Something is Not TODO.
 - [x] Something is DONE.
 
- 这是有序列表 A
 - 这是有序列表 B
- 这是有序列表 A
 - 这是有序列表 B
 
 
- This is Item 1.
 - This is Item 2.
- This is Item 1.
 - This is Item 2.
 
 
这是嵌套列表样式:
- 这是有序列表 A
 - 这是有序列表 B
- This is Item 1.
 - This is Item 2.
- [x] Something is Not TODO.
 - [ ] Something is DONE.
 
 
 
- 这是有序列表 A
 - 这是有序列表 B
- This is Item 1.
 - This is Item 2.
- [ ] Something is Not TODO.
 - [x] Something is DONE.
 
 
 
代码
单行代码:composer require --dev barryvdh/laravel-ide-helper
大段代码块:
/**
  * ----------------------------------------
  * 设置递增的 level 编号
  * ----------------------------------------
  * @param tag obj 标签对象
  *
  */
 setLevelNumber (tag) {
   try {
     if ((typeof tag) != 'object') {
        throw 'setLevelNumber() 调用时参数类型错误,必须是一个h标签的对象集合!';
     }
     let str = tag.id;
     if (str.lastIndexOf ('.') == - 1) { //如果是一级目录形式 level-1000
        let newValue = parseInt (str.slice (6))+1;
        return 'level-'+newValue;
     } else {
        // ...
     }
   } catch (err) {
      return err;
   }
 }
表格样式
| Left-Aligned | Center Aligned | Right Aligned | 
|---|---|---|
| This is the first line | this is code some wordy text and some code | 
$160 | 
| This is the second line | some code: this is code centered | 
$1200.99 | 
| This is the third line | are neat | $1 | 
引用文本框
This is a Normal text box …
this is code style
[!NOTE]
This is a Note text box …
This is a Note text box …
[!NOTE]
This is a Note text box …
[!TIP]
This is a Tip text box …
[!IMPORTANT]
This is a Important text box …
[!WARNING]
This is a Warning text box …
[!CAUTION]
This is a Caution text box …
图片
图表Mermaid
以下是 Mermaid图表 部分示例,更多图表类型请参考:Mermaid图表
flowchart LR
    A[Hard edge] -->|Link text| B(Round edge)
    B --> C{Decision}
    C -->|One| D[Result one]
    C -->|Two| E[Result two]
stateDiagram-v2
    [*] --> Active
    state Active {
        [*] --> NumLockOff
        NumLockOff --> NumLockOn : EvNumLockPressed
        NumLockOn --> NumLockOff : EvNumLockPressed
        --
        [*] --> CapsLockOff
        CapsLockOff --> CapsLockOn : EvCapsLockPressed
        CapsLockOn --> CapsLockOff : EvCapsLockPressed
        --
        [*] --> ScrollLockOff
        ScrollLockOff --> ScrollLockOn : EvScrollLockPressed
        ScrollLockOn --> ScrollLockOff : EvScrollLockPressed
    }
gantt
    dateFormat  YYYY-MM-DD
    title       Adding GANTT diagram functionality to mermaid
    excludes    weekends
    %% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
    section A section
    Completed task            :done,    des1, 2014-01-06,2014-01-08
    Active task               :active,  des2, 2014-01-09, 3d
    Future task               :         des3, after des2, 5d
    Future task2              :         des4, after des3, 5d
    section Critical tasks
    Completed task in the critical line :crit, done, 2014-01-06,24h
    Implement parser and jison          :crit, done, after des1, 2d
    Create tests for parser             :crit, active, 3d
    Future task in critical line        :crit, 5d
    Create tests for renderer           :2d
    Add to mermaid                      :until isadded
    Functionality added                 :milestone, isadded, 2014-01-25, 0d
    section Documentation
    Describe gantt syntax               :active, a1, after des1, 3d
    Add gantt diagram to demo page      :after a1  , 20h
    Add another diagram to demo page    :doc1, after a1  , 48h
    section Last section
    Describe gantt syntax               :after doc1, 3d
    Add gantt diagram to demo page      :20h
    Add another diagram to demo page    :48h
一级标题1
二级标题2
三级标题3
四级标题4
五级标题5
六级标题6
TOC目录
以下是 [TOC] 目录样式
[TOC]