coolair

Markdown 表格语法更新了?

  •  
  •   coolair · May 22 · 2170 views

    我记得原来表格分隔线至少要三个 -,原来写文档的时候还特意试过,最少几个就能识别。

    https://www.markdownguide.org/extended-syntax/#tables

    https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables

    今天发现现在一个就可以了。

    | a | b | c | d |
    | --- | :--- | :---: | ---: |
    
    
    | a | b | c | d |
    | - | :- | :-: | -: |
    
    a b c d
    a b c d

    貌似这里不支持对齐。

    a b c d
    a b c d
    4 replies    2026-05-24 13:08:31 +08:00
    xiaowoli
        1
    xiaowoli  
       May 22
    我也记得是三个 --- 好久没写了,都是 AI 了😂
    yolee599
        2
    yolee599  
       May 22 via Android   ❤️ 1
    总字符要 3 个,--- 或 :-- 或 :-:,我一直都这么写的
    Tiande
        3
    Tiande  
    PRO
       May 22
    好神奇哦
    codehz
        4
    codehz  
       May 24
    markdown 没有“官方统一标准”望周知
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3221 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 03:47 · PVG 11:47 · LAX 20:47 · JFK 23:47
    ♥ Do have faith in what you're doing.