Repository navigation
Conversation
Both list items and table cells pulled their content from InnerText, which
flattens markup to plain text. The converter already handles strong, em,
code, links and strikethrough correctly, but that pipeline was bypassed in
the two places formatting appears most often, so bold text and links were
silently dropped from every bullet and every cell.
Run both through ConvertChildren instead. List items convert a copy with
the nested lists detached, so nested content is still emitted separately as
indented items. Cell and item text is collapsed onto a single line, and
pipes inside cells are escaped so the table stays well formed.
Before:
- See docs for details
| Bold | see link |
After:
- See [docs](https://example.com) for **details**
| **Bold** | see [link](https://x.test) |
Fixes #15
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b721ad5f-9add-4f55-b9c8-7e6d7b0fb3e7
This was referenced Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15.
Problem
ConvertListItemandConvertTableboth read content viaInnerText, which flattens all markup to plain text. The converter already handles<strong>,<em>,<code>,<a>and<s>properly — that pipeline was simply bypassed in the two places formatting appears most often.Change
ConvertChildren, the same path used everywhere else.<li>with nested lists detached, so nested content is still emitted separately as indented items rather than being inlined.<br>or block children can no longer break the pipe table across rows.|inside a cell is escaped as\|, which previously split the cell into two columns.Verification
Ran against the pinned HtmlAgilityPack 1.11.72.
<li>See <a href="…">docs</a> for <strong>details</strong></li>- See docs for details- See [docs](https://example.com) for **details**<td><strong>Bold</strong></td>| Bold || **Bold** |<td>a|b</td>| a|b |(breaks the table)| a\\|b |Nested-list output from #28 is unchanged, and existing task-list detection (
☑/☐prefix) still works because the prefix survives conversion.dotnet build -c Release -r win-x64succeeds with 0 warnings.Scope
Text nodes are still emitted unescaped — tracked separately in #16.