Skip to content

🐛 fix(markdown): keep cell emphasis across p - #1663

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/markdown-cflite-20261107
Nov 7, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/markdown-cflite-20261107

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

HTML-to-Markdown conversion could change the meaning of a table cell when a bold or italic span contained a paragraph. The cell now retains one formatting span across the flattened paragraph.

The table cell renderer keeps formatting active through ordinary paragraphs. A blockquote has its own inline flow, so formatting still closes at its boundaries.

Flattening a paragraph inside a table cell split an enclosing emphasis marker,
so HTML-to-Markdown conversion changed the cell's meaning. Keep the marker
open across ordinary cell paragraphs, while blockquotes retain their own
inline flow.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 7, 2026
@codspeed

codspeed Bot commented Nov 7, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 6.29%

2 warnings

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚠️ 1 benchmark with a significant change ran in a different software environment

Its base and head results were measured with a different OS or toolchain, such as compiler, runtime or library versions, so the change might come from this difference rather than from the code. Open the benchmark to see what changed.

See affected benchmarks

⚡ 1 improved benchmark
✅ 581 untouched benchmarks
⏩ 32 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_feature[select-relative-sibling] 44.2 µs 41.6 µs +6.29%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing gaborbernat:fix/markdown-cflite-20261107 (2c84365) with main (3c9579b)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat enabled auto-merge (squash) November 7, 2026 05:33
@gaborbernat
gaborbernat merged commit db795fe into tox-dev:main Nov 7, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant