Skip to content

feat: include inline flag, {nobr} macro, and [nobr] passage tag#38

Merged
rohal12 merged 1 commit intomainfrom
feat/include-inline
Mar 18, 2026
Merged

feat: include inline flag, {nobr} macro, and [nobr] passage tag#38
rohal12 merged 1 commit intomainfrom
feat/include-inline

Conversation

@rohal12
Copy link
Copy Markdown
Owner

@rohal12 rohal12 commented Mar 18, 2026

Summary

  • Adds inline argument to {include} macro: {include "passage" inline} — uses renderInlineNodes to skip the markdown pass entirely
  • Adds {nobr}...{/nobr} block macro — suppresses <p> tag generation while keeping inline markdown (bold, italic, etc.)
  • Adds [nobr] passage tag — same effect for an entire passage (useful for layout passages like StoryInterface)
  • Updated docs and changelog, bumped to v0.2.2

Test plan

  • {include "passage" inline} renders without markdown
  • {include "passage"} still renders with markdown by default
  • {nobr}**bold** text{/nobr} produces <strong> but no <p>
  • Plain text without {nobr} still gets <p> wrapping
  • [nobr] passage tag suppresses <p> for entire passage
  • All 720 tests pass

release-npm

🤖 Generated with Claude Code

`{include "passage" inline}` uses renderInlineNodes instead of
renderNodes, rendering the included content without the markdown pass.

release-npm

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 72.12% 1972 / 2734
🔵 Statements 71.48% 2166 / 3030
🔵 Functions 66.72% 371 / 556
🔵 Branches 63.52% 991 / 1560
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/components/macros/Include.tsx 90.47% 87.5% 100% 94.73% 13, 23
Generated in workflow #102 for commit 7a05b71 by the Vitest Coverage Report Action

@rohal12 rohal12 merged commit a499ee0 into main Mar 18, 2026
8 of 9 checks passed
@rohal12 rohal12 changed the title feat: add inline flag to {include} macro feat: include inline flag, {nobr} macro, and [nobr] passage tag Mar 18, 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.

1 participant