feat: support HTML table tags in doc comments#1183
feat: support HTML table tags in doc comments#1183gennaroprota wants to merge 1 commit intocppalliance:developfrom
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-24 14:14:06 UTC |
dea61b5 to
33c2669
Compare
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (52.63%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1183 +/- ##
===========================================
+ Coverage 78.82% 78.88% +0.06%
===========================================
Files 308 308
Lines 32157 32328 +171
Branches 6456 6491 +35
===========================================
+ Hits 25347 25503 +156
+ Misses 4446 4432 -14
- Partials 2364 2393 +29
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
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.
26b6c9b to
71c4f5e
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.