Skip to content

[Repo Assist] test: expand Markdown.ToMd round-trip coverage with 15 new tests#1127

Draft
github-actions[bot] wants to merge 2 commits intomainfrom
repo-assist/test-tomd-coverage-2026-03-29-359932f680518ba0
Draft

[Repo Assist] test: expand Markdown.ToMd round-trip coverage with 15 new tests#1127
github-actions[bot] wants to merge 2 commits intomainfrom
repo-assist/test-tomd-coverage-2026-03-29-359932f680518ba0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

Adds 15 new tests for Markdown.ToMd serialisation, covering cases that had zero coverage prior to this PR.

New test cases

Area Tests added
Heading levels #### H4, ##### H5, ###### H6
Emphasis inside headings ## Hello *world*, ## Hello **world**
LaTeX display math $$E = mc^2$$
Nested blockquote "> > inner quote" round-trips with double > markers
Emphasis / code inside blockquote "> *italic*", "> \printf`"`
Code block without language tag bare ``` fence
Horizontal rule (dash variant) ---
Link with title attribute [text](url "title")
Inline code with special chars `a + b = c`
Nested unordered list * outer\n\n * inner

All tests are self-contained — they call Markdown.Parse followed by Markdown.ToMd and assert on the serialised output.

Root Cause / Rationale

The ToMd serialiser was introduced as a first-class public API (used by the literate-programming pipeline and the fsdocs convert --output-format markdown path), but the test suite had minimal coverage of advanced features. These gaps were identified by code-review of MarkdownUtils.fs.

Trade-offs

Purely additive — no production code changed.

Test Status

✅ All 281 markdown tests pass (0 failures, 0 skipped).

Passed!  - Failed: 0, Passed: 281, Skipped: 0, Total: 281

Generated by 🌈 Repo Assist at {run-started}. Learn more.

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@1f672aef974f4246124860fc532f82fe8a93a57e

Add tests for heading levels 4-6, emphasis/strong inside headings,
LaTeX display math, nested blockquotes, emphasis/code inside blockquotes,
code blocks without language, and link titles.  All 281 markdown tests
pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants