Skip to content

Comments

Fix meta shortcode not preserving line breaks in values (#14061)#14073

Merged
cscheid merged 1 commit intomainfrom
bugfix/14061
Feb 20, 2026
Merged

Fix meta shortcode not preserving line breaks in values (#14061)#14073
cscheid merged 1 commit intomainfrom
bugfix/14061

Conversation

@cscheid
Copy link
Collaborator

@cscheid cscheid commented Feb 20, 2026

The meta shortcode handler previously used processValue() for all contexts, which collapses multi-line metadata into inline content. Now handleMeta() dispatches based on context: block context returns Blocks directly via processValueInBlockContext(), inline context preserves the existing behavior, and text context (e.g. inside code blocks) writes blocks back as markdown to preserve structure.

Closes #14061.

The meta shortcode handler previously used processValue() for all
contexts, which collapses multi-line metadata into inline content.
Now handleMeta() dispatches based on context: block context returns
Blocks directly via processValueInBlockContext(), inline context
preserves the existing behavior, and text context (e.g. inside code
blocks) writes blocks back as markdown to preserve structure.

Closes #14061

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Feb 20, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cscheid cscheid merged commit f6ecb11 into main Feb 20, 2026
51 checks passed
@cscheid cscheid deleted the bugfix/14061 branch February 20, 2026 17:03
@cscheid cscheid added this to the v1.9 milestone Feb 20, 2026
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.

Meta shortcode doesn't preserve line breaks in values

2 participants