Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 976 Bytes

md2md_adapt_ams_rule_for_math_formula.md

File metadata and controls

59 lines (47 loc) · 976 Bytes

Adapt AMS rule for math formula

  • Inputs(./input.md): refer to test_md2md_math.md.

    $$
    \begin{equation}\tag{abcd}\label{lalla}
    e=mc^2
    \end{equation}
    $$
    
    $$
    \begin{equation}
    e=mc^2
    \end{equation}
    $$
    
    $$
    e=mc^2
    $$
    
    $$
    \begin{equation}\label{eq1}
    e=mc^2
    \end{equation}
    $$
  • Coding:

    pandoc ./input.md -o ./output.md -f markdown -t gfm -s --filter md2md-enhance-equation-filter
  • Outputs(./output.md): refer to test_md2md_math.md.

    $$
    \begin{equation}\label{lalla}\tag{abcd}
    e=mc^2
    \end{equation}
    $$
    
    $$
    \begin{equation}\tag{1}
    e=mc^2
    \end{equation}
    $$
    
    $$
    e=mc^2
    $$
    
    $$
    \begin{equation}\label{eq1}\tag{2}
    e=mc^2
    \end{equation}
    $$