Repository navigation
🐛 fix(markdown): keep image spaces in tables - #1646
Conversation
Table cells collapse whitespace after rendering, which changed image attributes containing repeated spaces on reparse. Emit those images as HTML with character references so each attribute retains its value.
Merging this PR will improve performance by 0.4%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Markdown tables could change an image's alt text, source, or title when an attribute contained repeated spaces. The table cell's whitespace pass collapsed those spaces, changing the image on reparse.
For those images, table rendering uses HTML with character references for attribute spaces. The cell stays on one line, and the parsed image retains its attribute values.