suitenumerique/docs
Markdown export does not preserve original formatting (indentation, list markers, and horizontal rules)
開放
#2,312 建立於 2026年5月21日
bugexportfrontendgood first issuetriage
倉庫指標
- 星標
- (16,557 顆星)
- PR 合併指標
- (平均合併 15天 9小時) (30 天內合併 40 個 PR)
描述
Bug Report
Problematic behavior
When exporting a document to Markdown, the exported content does not preserve the original Markdown syntax:
- leading tabs and spaces at the beginning of blocks are removed
- unordered lists using
-are converted to* - horizontal separators written as
---are converted to***
Expected behavior/code
The Markdown export should preserve the original Markdown formatting exactly as written in the editor, including:
- leading tabs and spaces
- list markers (
-should remain-) - horizontal rules (
---should remain---)
Steps to Reproduce
- Create a document containing:
- indented lines using spaces or tabs
- unordered lists using
- - horizontal rules using
---
- Export the document as Markdown
- Open the exported
.mdfile - Notice that indentation is removed, list markers are changed to
*, and separators are converted to***
Environment
- Instance url: https://docs.numerique.gouv.fr/