Repository navigation
fix(styles): label two-column tables when stacked and keep short code whole - #11
Merged
Merged
Conversation
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 that stacks on a narrow column now names the second cell of a two-column table, as it already did for wider tables, and short inline code such as
invalid-argumentno longer splits at its hyphen. Bumps the kit to 0.0.1-alpha.6.Changes
labelTablelabels every cell after the first, in a two-column table too. The first cell stays the unlabelled title of the entry, as in three-column tables.rehypeTableLabelsmarks inline code of 24 characters or fewer withdata-short. The stylesheet keepscode[data-short]on one line. Longer code, such as a default value or a URL, still wraps as before, in prose and in table cells, stacked or not.preleft alone) and the two rules. README says what the plugin does now.Testing
pnpm types:check,pnpm test(358 tests),pnpm buildandpnpm pack:checkpass./docs/load-and-savethestale-documentthat wrapped under alpha.5 stays whole./reference/errorsand/reference/stylingshow no sideways scroll, and Styling's long defaults, such ascolor-mix(...), still wrap. On docs.marfa.so, the Glossary and Limits pages stack with no overflow and no short code wrapped.Notes for reviewers
A short-code threshold of 24 characters is a judgment call: a short name fits a stacked cell, and a longer one wraps rather than overflow. A site that does not use
rehypeTableLabelskeeps the old wrapping. No export, class or custom property changed.Checklist