fix(svg): responsive fit: shrink + Pennington.Beck docs rewrite#10
Merged
Conversation
The inline style capped the SVG at its natural pixel width, which kept it from scaling down inside narrow containers. Shrink mode now emits `max-width:100%` (the width attribute still caps it at natural size in wide containers); `fit: scroll` keeps the pixel cap so the host container scrolls instead. Adds a smoke test for both modes and regenerates the golden and oracle SVGs.
The hand-rolled `ICodeBlockPreprocessor` walkthrough is replaced by the one-liner `AddPenningtonBeck()` registration, with new sections on the fence flags (`static`, `scrub`, `style=<name>`) and the three scopes for picking a style. Adds the missing `meta.style` row to the YAML schema reference and llms.md.
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
fit: shrink(the default) now emits inlinemax-width:100%instead of a natural-pixel-width cap, so diagrams scale down inside narrow containers;fit: scrollkeeps the pixel cap so the host container scrolls insteadFitModeControlsInlineMaxWidthsmoke test covering both modes; goldens and oracle renders regenerated for the inline-style changePennington.Beckpackage (AddPenningtonBeck()one-liner replaces the hand-rolledICodeBlockPreprocessorwalkthrough), documents the fence flags (static,scrub,style=<name>), and adds the missingmeta.stylerow to the YAML schema reference and llms.mdTest plan
dotnet test tests/Beck.Tests/Beck.Tests.csproj— 420/420 passing