memo: Markdown Syntax

一级标题

二级标题

正文

bold text (设置快捷健 ,b

italic text (斜体快捷键 ,i)

bold italic

wasted text (删除线 ,s)

3个` 括起来是代码块(1左边那个键)

加上python会显示对应的高亮

1
print("hello")

[Named Link](http://www.baidu.com/"Named link title")

http://www.baidu.com/

http://example.com/

heading-1 (转到一级标题处)

First Header second Header
Content Cell Content Cell
content Cell content cell

一行代码 用` `括起来

code

  • Bullet List Item1 (*号和文字之间有空格)
    • Nested bullet
      • Sub_nested bullet etc
        • Sub_nested
          • sub_nested
  • Bullet List item 2

1.A number list 1. A nested numbered list 2, which is numbered 2.which is numberd

  • [] An uncompleted task ( - 和 [ 之间有空格)
  • A complete task
    • [] A subtask

引用块

子引用块

— 水平线


picture alt
picture alt
Title 1

折叠内容Content 1 Content 1 Content 1 Content 1 Content 1

F

多行公式独立编号:(来源:Markdown下LaTeX公式、编号、对齐) $$ \begin{eqnarray*} x^n+y^n &=& z^n \tag{1.4} \ x+y &=& z \tag{1.5} \end{eqnarray*} $$

单个公式换行:

单个公式很长的时候需要换行,但仅允许生成一个编号时,可以用split标签包围公式代码,在需要转行的地方使用\\,每行需要使用1个&来标识对齐的位置,结束后可使用\tag{...}标签编号。 $$ \begin{split}a &= b \c &= d \e &= f \end{split}\tag{1.3} $$


字母头上 ^

1
$\^θ$

用 vim 插件 MarkdownPreview 在浏览器中可以正确渲染这个公式, 但是 Hugo 的KaTex 需要多打一个back slash:\\^θ 才能正确渲染,但这样做 vim 插件里就渲染不对了。


单行写分段函数

For katex, there is one more \

1
\\{^{x=0}\_{x=1}

交换图表

MathJax基础(10):Commutative diagrams

$$ $\require{AMScd}$ \begin{CD} A @>a» B\ @V b V V= @VV c V\ C @»d> D \end{CD} $$


mermaid style

%% node style classDef lyrs fill:#ff9 class lyr11,act1,lyr12,lyr21,act2,lyr22 lyrs; %% link linkStyle 9,10,11,12,16,17,18,19 stroke:#0af,stroke-width:3px %% fontsize classDef node font-size:20px;

Anchor

Uppercase -> lowercase; Spaces -> -

Github Markdown anchor only linking to top of the page


Images side by side

1
2
3
4
5
<table><tr>
    <td><img src="./pictures/DOG.png"><center style="font-size:14px;">是因为边界没有极值?所以只用中间层</center></td>
    <td><img src="./pictures/DOG_levels.png"><center style="font-size:14px">图2.DOG金字塔的实际显示效果</center></td>
    <td><img src="./pictures/SIFT_Features.png"><center style="font-size:14px">图3.DOG图像归一化结果</center></td>
</table>

Common Unicode

Clipboard of symbl.cc

εφμf𝐱⋱⋮⋯⌊⌋σ√↓↑↓▼⬇λ˙⋅□↑⇔γβ∈α∑×‖⑊ ⊠∂Λθ∭∞°Σ➔©→✅⬯⬭τδ⊗∫𝚺𝛍𝐔𝐈𝐮∈𝐱𝐌𝐖𝚫ℤω℮∏‖⊙⊛ηρ𝐝𝐜𝐕𝒢𝐭𝐉𝐦𝛈≈❙❘⇤↳⋮⋆⭑✦★•𝑳𝐿𝐲𝐏𝐩𝐪𝐚𝐛𝐦𝐧𝐊𝐑𝐭𝐀𝐁𝐐𝐂𝐇𝐅𝐕|⏐▭✚▱𝐘𝐗𝐳𝐃𝐄⬯˚∘Δ😊≤▱■⌷⍨⍩⍤⟨〈⟩⬮↘∇𝛁 ▦

  • Less than < will be mis-parsed as a html syntax by vim-markdown, use ❮ (Heavy Left-Pointing Angle Quotation Mark Ornament, brackets), or $<$

  • ${}$ won’t render the curly braces { }, use { } (Fullwidth Curly Brackets)

    Or $\\{ \\}$

  • 画斜线角度不够,可以用 ellipsis ⋱⋰ (Up Right Diagonal Ellipsis)


表格列宽


公式

箭头指示

DDG search: “latex math equation block where a symbol is pointed by an upward arrow?”

Arrow to an equal symbol in a equation to justify it - SE

$$ a+b\underset{\substack{\color{red}\uparrow \\ % or: \rotatebox{90}{$\longrightarrow$} \mathclap{\textup{\tiny commutative}} \\ \mathclap{\textup{\tiny property}}}}{=}b+a $$


符号加方框

1
\boxed{x}

$$ \boxed{x} $$


Small text

(2024-05-24)

  1. Use the attribute font-size of tag <p>, e.g., <p style="font-size:10px">text</p>:

    text

  2. Keep the text inline without going to a new line: <span style="font-size:10px; color:red;">text</span>: text

  3. <small>text</small>: text

  4. Deprecated in HTML5: <font size="3" color="red">text</font>: text


iframe

(2024-01-21)

  • The size of the content can be set as below:

    1
    2
    3
    4
    5
    
    <iframe width="560" height="315" 
    src="https://www.youtube.com/embed/-P28LKWTzrI?si=szYmMkdL7Ixw-6_4" 
    title="YouTube video player" frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" 
    allowfullscreen></iframe>