Skip to content

fix(context): preserve language fences in formatted pre/code blocks - #180

Open
TheRealBecks wants to merge 1 commit into
neuledge:mainfrom
TheRealBecks:TheRealBecks/issues151-bare-pre-whitespace
Open

TheRealBecks wants to merge 1 commit into
neuledge:mainfrom
TheRealBecks:TheRealBecks/issues151-bare-pre-whitespace

Conversation

@TheRealBecks

Copy link
Copy Markdown
Contributor

Whitespace before <code class="language-sh"> makes barePre lose the language fence and include wrapper whitespace in the code.

Recognize a sole <code> child surrounded by whitespace or comments, preserving its language, indentation, and embedded backticks. Mixed preformatted content retains all sibling text.

Includes regression tests and a patch changeset for @neuledge/context.

Validation: build and lint passed; 275 context tests and 103 registry tests passed.

Addresses the barePre whitespace follow-up in #151.

@changeset-bot

changeset-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ca62386

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@neuledge/context Patch
@neuledge/registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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