markdown-常用备忘

  1. 标题

在行首插入 1 到 6个#,分别表示标题 1 到标题 6

这是标题1

这是标题1

这是标题6

点击保存后的效果:

标题1

标题2

标题6

  1. 有序列表

在行首增加 1.、2.、3.,即数字和英文句点, 注意句点与文字中间有空格。不要求数字一定要连续,可以都是1.

  1. 有序列表
  2. 有序列表
  3. 有序列表 点击保存后的效果:

有序列表 有序列表 有序列表 3. 无序列表

在行首增加 * 或 - 与文字之间有空格

  • 无序列表
  • 无序列表 点击保存后的效果:

无序列表 无序列表 4. 插入图片

可直接粘贴图片,或将图片文件拖动到光标处。

也可以使用标准的Markdown语法,如:

  1. 插入链接

描述 ,例如:为知笔记,注意要使用英文符号 点击保存后的效果: 为知笔记

  1. 粗体、斜体、删除线

粗体:在文字前后添加 ** (注意符号与文字间不要有空格) 斜体:在文字前后添加 * 删除线:在文字前后添加 ~~

粗体 斜体 删除线 保存后的效果:

粗体 斜体 删除线

  1. 引用

在文字前 添加 >

点击保存后的效果:

如果你无法简洁的表达你的想法,那只说明你还不够了解它。 -- 阿尔伯特·爱因斯坦

  1. 表格
为知笔记更新版本
WizNoteMarkdownLatest
点击保存后的效果:

为知笔记 更新 版本 WizNote Markdown Latest 9. 代码

在代码前后增加 三个反单引号:```

int i = 0; i = 1;
for (int i = 0; i < 100; i++)
{
      System.out.print("hello markdown!\n");
}

保存后的效果:

如果需要指定语言, 在开头的后紧跟具体语言,如:java

  1. 目录

在任何你想要展示Markdown 笔记目录的地方,添加 [TOC] , 在阅读模式下,标题1~6样式的内容会被提取出来作为目录,相当于大纲功能。

例如:

[TOC]

###Markdown 是什么

####Markdown 的好处

点击保存后的效果:

  1. Mathjax 公式

可以创建行内公式,例如:$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ 或者块级公式, $$ x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$ 点击保存后的效果:

  1. 流程图 mermaid
graph LR
A-->B;
B-->C;

GraphViz

digraph G {
  a->b
  b->c
  b->d
}

时序图

digraph G {
    rankdir="LR";
    node[shape="point", width=0, height=0];
    edge[arrowhead="none", style="dashed"]

    {
        rank="same";
        edge[style="solided"];
        LC[shape="plaintext"];
        LC -> step00 -> step01 -> step02 -> step03 -> step04 -> step05;
    }

    {
        rank="same";
        edge[style="solided"];
        Agency[shape="plaintext"];
        Agency -> step10 -> step11 -> step12 -> step13 -> step14 -> step15;
    }

    {
        rank="same";
        edge[style="solided"];
        Agent[shape="plaintext"];
        Agent -> step20 -> step21 -> step22 -> step23 -> step24 -> step25;
    }

    step00 -> step10 [label="sends email new custumer", arrowhead="normal"];
    step11 -> step01 [label="declines", arrowhead="normal"];
    step12 -> step02 [label="accepts", arrowhead="normal"];
    step13 -> step23 [label="forward to", arrowhead="normal"];
    step24 -> step14;
    step14 -> step04 [arrowhead="normal"];
}

Ditaa

  +--------+   +-------+    +-------+
  |        | --+ ditaa +--> |       |
  |  Text  |   +-------+    |diagram|
  |Document|   |!magic!|    |       |
  |     {d}|   |       |    |       |
  +---+----+   +-------+    +-------+
      :                         ^
      |       Lots of work      |
      +-------------------------+
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值