Skip to content

fix: convert headings to plain text in table cells (issue #2722)#540

Open
mikemikimike wants to merge 2 commits intodocling-project:mainfrom
mikemikimike:fix/2722-table-heading
Open

fix: convert headings to plain text in table cells (issue #2722)#540
mikemikimike wants to merge 2 commits intodocling-project:mainfrom
mikemikimike:fix/2722-table-heading

Conversation

@mikemikimike
Copy link
Copy Markdown

Description

According to markdown specs, headings are not allowed inside tables. This fix converts markdown headings to plain text when rendering content inside table cells.

Fix

In MarkdownTextSerializer.serialize(), added in_table_cell parameter. The _format_heading() method now checks this flag and returns plain text instead of markdown headings when rendering inside table cells.

Issue

Fixes #2722

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 9, 2026

DCO Check Passed

Thanks @mikemikimike, all your commits are properly signed off. 🎉

@mergify
Copy link
Copy Markdown

mergify bot commented Mar 9, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

Signed-off-by: 温可 <wenke@openclaw.ai>
@mikemikimike mikemikimike force-pushed the fix/2722-table-heading branch from e919759 to 9a64509 Compare March 9, 2026 04:33
I, 温可 <wenke@openclaw.ai>, hereby add my Signed-off-by to this commit: 9a64509

Signed-off-by: 温可 <wenke@openclaw.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant