fix(docs): render Component Reference tables as real Markdown tables #76
No Reviewers
Labels
Clear labels
Area/CI
Area/Completions
Area/Components
Area/Config
Area/Docs
Area/Functions
Area/Integrations
Area/Prompt & Theme
Area/Scripts
Area/Tests
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Refactor
Kind/Security
Kind/Testing
good first issue
help wanted
.github/workflows and repository automation
completions/ - tab-completion scripts
The opinionated-component system (C1-C6)
config.fish and conf.d/ - startup and environment
docs/manual/ and the generated manual, man page, and site
functions/ - user-facing functions and helpers
integrations/ - third-party tool wiring
themes/ and prompt appearance
scripts/ - standalone helper scripts
tests/ - the syntax lint and functional suite
Breaking change that won't be backward compatible
Something is not working
Tooling, dependencies, and housekeeping
Documentation changes
Improve existing functionality
New functionality
Makes existing behavior faster or lighter
Restructures code without changing behavior
This is security issue
Issue or pull request related to testing
Well-scoped and self-contained; a good place to start
Maintainer is looking for someone to pick this up
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rootiest/fish-config#76
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
The "Component Reference" tables in the Customization section (C1–C6) were rendering as plain indented code blocks on the Starlight site instead of real Markdown tables.
Root cause:
_as_table()indocs/build-manual.pyonly detects a table when data rows are indented deeper than a":"-terminated label (the "Options:" convention used elsewhere). The Component Reference tables use a different, unrelated convention — header row, a solid dashed rule, then data rows all at the same indent — so they never matched and always fell through to the plain code-block fallback.What changed
_as_ruled_table()to recognize the header+rule+rows shape. Unlike_as_table(fixed at 2 columns), it supports N columns.<or{(e.g.<session>placeholders,{ }brace globs) are backtick-escaped rather than causing the whole table to be rejected —_as_table's stricter reject-on-</{guard was left untouched since a test locks in that behavior for its own convention.None/code-block, since that's a real source-authoring bug, not something to guess at.docs/manual/07-customization.md(C1:du,help config,claude; C4:Done desktop notifications) where two columns had collapsed to a single space, making them ambiguous with a continuation line._render_para's output still feeds the man page /config-helppath unchanged;test_prettify_is_site_onlyconfirms that invariant still holds.No user-facing commands, flags, or behavior changed — doc generator only. README audited, no updates needed.
Manual Verification
python3 docs/verify-manual.pyfromdocs/— expect29/29 passed<session>/<win>/<pane>placeholders as inline code, not broken/escaped text{ }braces as inline codedocs/fish-config.1) andconfig-helpoutput for the Customization section are unchanged (still plain indented text, not tables)_as_table() only detects tables whose data rows are indented deeper than a ":"-terminated label. The "Component Reference" tables use a different convention (header, dashed rule, rows all at the same indent), so they never matched and fell through to a plain indented code block on the Starlight site. Add _as_ruled_table() to recognize that header+rule+rows shape. It supports N columns, folds word-wrapped continuation lines into the previous row, and backtick-escapes cells containing "<" or "{" instead of rejecting the table outright (unlike _as_table's stricter guard, which those tables would otherwise trip on for angle-bracket placeholders and brace globs). Also fixes four ambiguous rows in 07-customization.md where two columns had collapsed to a single space, making them indistinguishable from a word-wrapped continuation.