Repository navigation
fix(table): render a pipe table inside a blockquote or callout - #95
Merged
Merged
Conversation
A table was found only at the start of a line, so `> | a | b |` stayed quoted text with its pipes and dashes showing. GFM allows a table in a blockquote, and GitHub renders one in a callout too. Rows that start with one quote marker are now collected without it and rendered as a table behind the quote's bar. The gaps above and below keep the bar, so the quote is not cut where the table starts or ends, and in a callout the bar and background take the callout's colours while the table's own borders stay as they are. A nested quote (`>> |`) is left as quoted text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A table was found only at the start of a line, so
stayed quoted text with its pipes and dashes showing. GFM allows a table in a blockquote (a blockquote holds any block, and the table extension adds one), and GitHub renders one in a callout too.
Rows that start with one quote marker are now collected without it and rendered as a table behind the quote's bar:
>) is the gap itself, and a callout's title needs none.FloatBorder(apply_alert_stylingwould have recoloured them, so the bar is coloured by a newadd_quote_bar).>> |) is left as quoted text.Test plan
make test,stylua --check .tests/blockquote_table_test.lua: plain quote, text around the table, empty quote lines as gaps, callout colours, nested quote🤖 Generated with Claude Code