代码之家  ›  专栏  ›  技术社区  ›  BugsOverflow

Bitbucket标记未正确显示

  •  0
  • BugsOverflow  · 技术社区  · 2 年前

    我有一个CHANGELOG.md,内容如下:

    ## 🐛 Bug Fixes
    - `commithash` enable main automatic pipeline  
      - Author: committer
      - Date: 01/08/2024 20:15:08
    

    markdown在github和visual studio代码/其他工具的预览中表现良好,结果应该是:

    correct result

    但在比特桶中,您会得到以下结果:

    wrong result

    怎么会?我试着让它看起来正确,添加更多这样的空格(总共4个空格):

    ## 🐛 Bug Fixes
    - `commithash` enable main automatic pipeline
        - Author: committer
        - Date: 01/08/2024 20:15:08
    

    它在bitbucket中是这样渲染的(为什么它不能像在github和IDE中那样使用2个空格?认为bitbucket的markdown有问题):

    closer to the correct result but using more spaces than normal

    即使我在StackOverflow中粘贴标记(只有2个空格),结果也是预期的:

    漏洞修补

    • commithash 启用主自动管道
      • 作者:提交人
      • 日期:2024年8月1日20:15:08
    1 回复  |  直到 2 年前
        1
  •  0
  •   Phil    2 年前

    这似乎只是Bitbucket中使用的特定Markdown实现的细微差别。

    来自 official tutorial

    列表可以嵌入到列表中。列表项可能由多个段落组成。列表项中的每个后续段落必须缩进 4个空格或一个制表符

    另请参阅 Markdown Syntax Guide