feat: support HTML table tags in doc comments#1183
Conversation
✨ Highlights
🧾 Changes by Scope
🔝 Top Files
|
|
An automated preview of the documentation is available at https://1183.mrdocs.prtest2.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-04-28 13:29:01 UTC |
dea61b5 to
33c2669
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1183 +/- ##
===========================================
+ Coverage 78.82% 79.19% +0.37%
===========================================
Files 308 308
Lines 32157 32332 +175
Branches 6456 6493 +37
===========================================
+ Hits 25347 25606 +259
+ Misses 4446 4355 -91
- Partials 2364 2371 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
33c2669 to
26b6c9b
Compare
c591884 to
59071cd
Compare
Previously, an HTML table in a doc comment triggered: warning: HTML <table> tag not followed by pure text and then a fatal error: the existing HTML start-tag handler could only gather pure text between a tag and its matching end tag. The doc-comment extractor now recognizes `<table>`/`<tr>`/`<th>`/`<td>` and populates the existing `TableBlock`/`TableRow`/`TableCell` metadata. The HTML and Adoc generators each gain a doc/block/table partial. The Adoc output uses the `[%header]` table attribute when the first row is a header; the HTML output emits plain `<table>`/`<tr>`/`<th>`/`<td>`. The XML generator already serialized the metadata generically. Not (yet?) supported: - HTML attributes on `<table>`/`<tr>`/`<th>`/`<td>` (`align`, `colspan`, `rowspan`, `class`, `style`, ...). Column alignment is therefore never populated (`TableBlock::Alignments` is always empty) and cells cannot span rows or columns. - `<caption>`, `<col>`, and `<colgroup>`. - Block-level content inside cells (paragraphs, lists, code blocks). Cells currently hold only inline content. Closes issue cppalliance#1146.
59071cd to
acd3216
Compare
Previously, an HTML table in a doc comment triggered:
warning: HTML
<table>tag not followed by pure textand then a fatal error: the existing HTML start-tag handler could only gather pure text between a tag and its matching end tag. The doc-comment extractor now recognizes
<table>/<tr>/<th>/<td>and populates the existingTableBlock/TableRow/TableCellmetadata.The HTML and Adoc generators each gain a doc/block/table partial. The Adoc output uses the
[%header]table attribute when the first row is a header; the HTML output emits plain<table>/<tr>/<th>/<td>. The XML generator already serialized the metadata generically.Not (yet?) supported:
<table>/<tr>/<th>/<td>(align,colspan,rowspan,class,style, ...). Column alignment is therefore never populated (TableBlock::Alignmentsis always empty) and cells cannot span rows or columns.<caption>,<col>, and<colgroup>.Closes issue #1146.