mbterm 0.1.4

ANSI terminal renderer for MBDown documents
Documentation
# MBTerm 排版预览

## MUD 段落与段首缩进

### [room]客店[/room]

[indent first=4]
这是一家价钱低廉的客栈,生意非常兴隆。外地游客多选择这里落脚,你可以在这里打听到各地的风土人情。店小二里里外外忙得团团转,接待着南腔北调的客人。

[muted]这里明显的出口有[/muted] [exit]up[/exit] 和 [exit]west[/exit]。

[muted]此处:[/muted][primary]节日使者 天神随从[/primary]、[secondary]日月神教 引路人 仇庆彩[/secondary]、[primary]店小二 司涛轩[/primary]。
[/indent]

## Box 宽度与边框

[box title="响应式地图" width=full border=single border-color=map-border bg=panel]
                           客店二楼
                              〓
                  北大街-----客店
[/box]

[box title="定宽告示" width=36 border=single border-color=#12abef]
墙上挂着一个牌子。你可以输入 [command]look paizi[/command] 查看。
[/box]

[box width=32 border=none]
[warning]无边框 box[/warning] 仍会约束内容宽度,并参与父布局的宽度计算。
[/box]

## 多栏布局

[columns gap=3 bg=surface]
[column width=1fr bg=panel]
### [primary]人物状态[/primary]

- 精气:充沛
- 内力:平稳
- 所在:客店
[/column]
[column width=2fr]
### [secondary]房间人物[/secondary]

- 节日使者 天神随从
- 日月神教 引路人 仇庆彩
- 店小二 司涛轩
[/column]
[column width=16]
### [primary]出口[/primary]

- up
- west
[/column]
[/columns]

## Markdown 结构

> 窗口变窄时,普通段落、引用、列表、代码与表格均按 Unicode 显示列重新排版。

| 设施 | 状态 | 操作 |
|:--|:--:|--:|
| [客店留言板]https://example.test/board | 389 张未读 | [command]board[/command] |
| [墙上牌子]../help/sign | 可查看 | [command]look paizi[/command] |

普通 Markdown 链接也会生成 OSC 8:[MBTerm renderer](https://example.test/mbterm)。
BBCode 链接目标不限定 scheme 或 host:[link=seed-help:commands]自定义协议[/link]、
[link=../maps/inn]相对目标[/link],以及 [link="target with ] bracket"]quoted 目标[/link]。

## 扩展终端样式

- [blink=slow]slow blink[/blink] 与 [blink=rapid]rapid blink[/blink]
- [inverse]inverse[/inverse] 与 [overline]overline[/overline]
- [underline=single]single[/underline]、[underline=double]double[/underline]、[underline=curly]curly[/underline]、[underline=dotted]dotted[/underline]、[underline=dashed]dashed[/underline]
- [underline-color=bright-cyan][underline=curly]named underline color[/underline][/underline-color]、[underline-color=196][underline=dotted]indexed underline color[/underline][/underline-color]、[underline-color=#12abef][underline=dashed]RGB underline color[/underline][/underline-color]

```luau linenos
seed.command("look", function(ctx)
    ctx.msg("你环顾四周。")
end)
```