Skip to content

Add support for indented HTML blocks - #33

Merged
samuel-williams-shopify merged 3 commits into
mainfrom
indented-html-blocks
Sep 9, 2026
Merged

Add support for indented HTML blocks#33
samuel-williams-shopify merged 3 commits into
mainfrom
indented-html-blocks

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Expose an opt-in Markly::HTML_BLOCK_BLANK_LINES parser flag for author-written HTML fragments containing blank lines.

The parser establishes indentation from HTML content and retains a blank line only when the next nonblank line preserves that indentation. A dedent closes the HTML block, and default CommonMark parsing remains unchanged.

This updates the embedded CMarkly sources, documents the Markdown dialect change, adds release notes, and tests default behavior, tabs/spaces, initial blank lines, dedents, unindented content, custom elements, and raw HTML rendering.

Uses the parser support merged in socketry/cmarkly#6.

Assisted-By: devx/7ef83274-928f-499d-b668-48449b1ff60e
Assisted-By: devx/7ef83274-928f-499d-b668-48449b1ff60e
Assisted-By: devx/7ef83274-928f-499d-b668-48449b1ff60e
@samuel-williams-shopify
samuel-williams-shopify merged commit ce5bf0e into main Sep 9, 2026
24 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the indented-html-blocks branch September 9, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant