Skip to content

Fix/nested containers and link primary - #1

Open
suung wants to merge 2 commits into
mainfrom
fix/nested-containers-and-link-primary
Open

Fix/nested containers and link primary#1
suung wants to merge 2 commits into
mainfrom
fix/nested-containers-and-link-primary

Conversation

@suung

@suung suung commented Aug 6, 2026

Copy link
Copy Markdown
Member

Pull Request

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test updates
  • Build/tooling changes

Related Issues

Fixes #
Related to #

Changes Made

  • Change 1
  • Change 2
  • Change 3

Testing

Test Coverage

  • Added new tests for new functionality
  • Updated existing tests
  • All tests pass locally (npm test)
  • No decrease in code coverage

Manual Testing

  1. Step 1
  2. Step 2
  3. Step 3

Examples

Input

<!-- wiremd input example -->

Output

<!-- or describe the output/behavior -->

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Breaking Changes

  • Breaking change 1
  • Breaking change 2

Migration Guide

<!-- How users should update their code -->

Screenshots/Recordings

Performance Impact

  • No performance impact
  • Performance improved
  • Performance may be affected (explain below)

Documentation

  • README.md updated
  • CHANGELOG.md updated
  • API documentation updated (JSDoc)
  • Example files added/updated
  • Syntax specification updated (if syntax changes)

Additional Notes

Reviewer Checklist

  • Code quality and style
  • Tests are adequate
  • Documentation is complete
  • No security concerns
  • Performance is acceptable
  • Breaking changes are justified and documented

suung added 2 commits August 6, 2026 21:07
CASE 1 container collection used the last ::: in a folded paragraph, so
a tight nested badge inside a card swallowed the outer closer and body.
Use the first closer and splice any remainder back for the parent.

Also treat [Label](url)* and [Label](url){.primary} as linked primary
buttons — same AST as [[Label](url)]* — so the primary marker no longer
leaks as literal text.
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