Swap emoji and unicode glyphs for Tabler components so icons inherit currentColor and font-size and render consistently across platforms. - add src/components/doc-icons.ts to resolve doc-entry frontmatter icon keys to components; frontmatter now stores semantic keys - replace the align-*.png assets with TbOutlineAlign* icons - render RevealManager action SVGs as components instead of injected innerHTML strings - carry completion icons via an optional CompletionItem.icon field
729 B
729 B
tag, icon, title
| tag | icon | title |
|---|---|---|
| md-dice | dice | 骰子组件 |
点击骰子图标执行掷骰,点击文字重置为公式,可用于属性检定、伤害投掷等场景。
语法: :md-dice[公式]{key="标识"}
攻击检定:
:md-dice[1d20+5]{key="attack"}
伤害掷骰:
:md-dice[2d6+3]{key="damage"}
优势检定:
:md-dice[2d20k1+5]{key="advantage"}
点击骰子图标执行投掷,显示结果;点击文字重置为原始公式。
属性
| 属性 | 类型 | 说明 |
|---|---|---|
key |
string | URL 参数标识,结果记录到 ?dice-key=15 |
使用场景
用于技能检定、攻击命中、伤害计算等需要随机数的场景。