Skip to content

Latest commit

 

History

History
149 lines (93 loc) · 3.31 KB

advance.md

File metadata and controls

149 lines (93 loc) · 3.31 KB

增强语法

docsify

  • 嵌入文件

    • 显示内容 => [filename](_media/example.md ':include')

    • 支持不同类型

      • iframe => .html, .htm

        [filename](_media/example.md ':include :type=iframe')

      • markdown => .markdown, .md

      • audio => .mp3

      • video => .mp4, .ogg

      • code => other file extension

    • 显示代码块 => [](_media/example.html ':include :type=code js')

    • 设置属性 => [cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px')

  • 扩展语法

    • warning: !>
    • remind: ?>

mermaid

  • mermaid

  • 流程图

    • 规范

      • 元素定义

        • 开始 => 六角菱型或圆角矩形或椭圆
        • 函数 => 矩形
        • 判断 => 菱形
        • 结束 => 椭圆
        • I/O => 平行四边形
    • mermaid 语法

      • 方向

        • TB(top bottom)/TD 表示从上到下
        • BT(bottom top) 表示从下到上
        • RL(right left) 表示从右到左
        • LR(left right) 表示从左到右
      • 形状

        • 开始 => 圆角矩形

          id1(This is the text in the box)

        • 函数 => 矩形

          id1[This is the text in the box]

        • 判断 => 菱形

          id1{This is the text in the box}

        • 结束 => 椭圆

          id1([This is the text in the box])

        • I/O => 平行四边形

          id1[\This is the text in the box\]

          id1[/This is the text in the box/]

link

markdown 内的相对链接(sidebar.md 排除在外):

<a class="Repos" target="_blank" href="relative/path">github code</a>
<a class="Pages" target="_blank" href="relative/path">page preview</a>

sidebar:

!> 使用上面的会有副作用, 会随着当前预览的 README 路径而改变, 所以 sidebar 使用下面普通的用法

<a target="_blank" href="relative/path">github code</a>

这是相对于 index.html 的路径

/ 是以 repos 和 page 作为 root 的绝对路径, 统一使用这种路径作为 sidebar 的链接

emoji

latex

docsify-plugin-runkit

<div
  data-runkit
  data-runkit-evaluate-on-load="true"
  data-runkit-gutter-style="none"
  data-runkit-node-version="18"
></div>
here js code
</div>

docsify-tabs

<!-- tabs:start -->

#### **English**

Hello!

#### **French**

Bonjour!

#### **Italian**

Ciao!

<!-- tabs:end -->