Skip to content

Commit

Permalink
[asciidoc] if first row has a Code block convert it to text to ensure…
Browse files Browse the repository at this point in the history
… it renders headers properly
  • Loading branch information
rmannibucau committed Mar 10, 2024
1 parent ce8db78 commit 3cb0cf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ public void visitTable(final Table element) {
builder.append(" <tr>\n");
firstRow.forEach(it -> {
builder.append(" <th>\n");
visitElement(it);
visitElement(it instanceof Code c ? new Text(List.of(), c.value(), c.options()) : it);
builder.append(" </th>\n");
});
builder.append(" </tr>\n");
Expand Down

0 comments on commit 3cb0cf4

Please sign in to comment.