Skip to content

Spell card and item card block syntax #7

@Dev-Ray-Hunt

Description

@Dev-Ray-Hunt

Summary

Add dedicated callout types for rendering D&D spell cards and magic item cards in the standard PHB format.

Desired Syntax

> [!spell] Fireball
> *3rd-level evocation*
> **Casting Time:** 1 action
> **Range:** 150 feet
> **Components:** V, S, M (a tiny ball of bat guano and sulfur)
> **Duration:** Instantaneous
> 
> A bright streak flashes from your pointing finger...

> [!item] Staff of Fire
> *Staff, very rare (requires attunement by a druid, sorcerer, warlock, or wizard)*
> 
> You have resistance to fire damage while you hold this staff...

Visual Requirements

  • Spell cards: compact bordered box with school of magic subtitle styling
  • Item cards: rarity colour coded header, attunement note in italics
  • Both: consistent with PHB visual language

Notes

Extends the existing callout transformer in renderer.ts. Needs CSS in default-theme.css.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions