Commit 0b027d4
[Repo Assist] Fix Markdown.ToMd: Emphasis serialised as bold; ordered list 0-indexed (#1102)
* Fix Markdown.ToMd: Emphasis serialised as bold, ordered list 0-indexed
Two bugs in MarkdownUtils.fs formatSpan/formatParagraph:
1. Emphasis (italic) was serialised as **...** (bold) instead of *...*,
causing round-trip loss: *italic* → **italic**
2. Ordered list items used 0-based indexing with no period:
"0 first", "1 second" instead of "1. first", "2. second"
Fix both and add four regression tests.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
* docs: add issue/PR links to all Unreleased release note entries
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 83c90a1 commit 0b027d4
3 files changed
Lines changed: 32 additions & 3 deletions
File tree
- src/FSharp.Formatting.Markdown
- tests/FSharp.Markdown.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1260 | 1287 | | |
1261 | 1288 | | |
1262 | 1289 | | |
| |||
0 commit comments