feat: add ## {.row} flex layout primitive with alignment support#22
Merged
Conversation
Introduces `{.row}` as a new layout heading syntax alongside `{.grid-N}`.
Content directly under `## {.row}` is auto-wrapped as implicit flex items;
`###` children are supported for per-item `{.left}`/`{.center}`/`{.right}`
alignment. Row-level `{.right}` and `{.center}` map to justify-content.
Also fixes duplicate CSS class names on row/grid/tabs nodes (syntactic
class names were leaking into props.classes), suppresses empty `<h2>`
terminators from rendering, and wires up row rendering in the React and
Tailwind renderers.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
{.row}heading syntax —## Toolbar {.row}creates a horizontal flex row; content is auto-wrapped as implicit flex items (no###needed)### {.left}/### {.center}/### {.right}on explicit children (works in both{.row}and{.grid-N}){.right}/{.center}on the##heading maps tojustify-contentrow/grid/tabsnodes (syntactic class names were leaking intoprops.classes)<h2>terminators being rendered as blank heading elementsrownode rendering in React and Tailwind renderersTest plan
npm test)## {.row}parses torowAST node with implicitgrid-itemchildren## {.row}inside:::cardand other containers renders correctly{.left}/{.right}/{.center}on###items render correct alignment classes{.right}/{.center}renderjustify-end/justify-centerin Tailwind outputwmd-row,wmd-grid,wmd-tabselementsrownodes🤖 Generated with Claude Code