reactive-md 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-ch.md +16 -0
- package/CHANGELOG.md +16 -0
- package/README-ch.md +9 -7
- package/README-en.md +10 -7
- package/README.md +10 -7
- package/SECURITY-ch.md +4 -3
- package/SECURITY.md +4 -3
- package/THIRD_PARTY_NOTICES.md +45 -1
- package/dist-library/reactive-md-editor.css +1 -1
- package/dist-library/reactive-md-editor.js +739 -615
- package/dist-library/reactive-md-react.js +2081 -1904
- package/dist-library/reactive-md.js +440 -320
- package/dist-library/{runtime-DPuMxM_y.js → runtime-CXBdLQ3A.js} +8405 -2745
- package/dist-library/types/editor/editor-i18n.d.ts +7 -0
- package/dist-library/types/editor/editor-view-bar.d.ts +11 -0
- package/dist-library/types/editor/index.d.ts +1 -1
- package/dist-library/types/editor/types.d.ts +8 -1
- package/dist-library/types/local/LocalDocumentView.d.ts +10 -3
- package/dist-library/types/local/code-block.d.ts +3 -1
- package/dist-library/types/local/diagnostics.d.ts +25 -0
- package/dist-library/types/local/heading-anchors.d.ts +2 -0
- package/dist-library/types/local/html.d.ts +16 -0
- package/dist-library/types/local/image-view.d.ts +3 -1
- package/dist-library/types/local/index.d.ts +1 -1
- package/dist-library/types/local/options.d.ts +29 -0
- package/dist-library/types/local/types.d.ts +35 -1
- package/dist-library/types/local/worker.d.ts +18 -6
- package/dist-library/types/shareable.d.ts +9 -1
- package/dist-standalone/reactive-md-standalone.js +48 -48
- package/docs/compatibility-ch.md +4 -4
- package/docs/compatibility-en.md +4 -4
- package/docs/editor-ch.md +235 -216
- package/docs/editor-en.md +235 -216
- package/docs/html-compatibility-ch.md +98 -0
- package/docs/html-compatibility-en.md +98 -0
- package/docs/local-integration-ch.md +4 -1
- package/docs/local-integration-en.md +4 -1
- package/docs/local-interaction-syntax-ch.md +3 -1
- package/docs/local-interaction-syntax-en.md +1 -1
- package/docs/release-0.5.1-ch.md +39 -0
- package/docs/release-0.5.1-en.md +39 -0
- package/docs/releasing-ch.md +7 -7
- package/docs/releasing-en.md +8 -8
- package/docs/shareable-export-ch.md +2 -0
- package/docs/shareable-export-en.md +2 -0
- package/examples/local/README.md +2 -0
- package/examples/local/html-compat.reactive.md +24 -0
- package/package.json +3 -1
package/CHANGELOG-ch.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录用户可见变更。项目处于 0.x 预览阶段,版本与迁移规则见[版本与兼容性](docs/compatibility-ch.md)。
|
|
4
4
|
|
|
5
|
+
## 0.5.1(2026-10-25,next 渠道)
|
|
6
|
+
|
|
7
|
+
兼容 0.5.0。语法仍为 `local-draft-2`,组块协议为 `component-protocol-1`,主题协议为 `reactive-md-theme-1`。见[0.5.1 发布说明](docs/release-0.5.1-ch.md)。
|
|
8
|
+
|
|
9
|
+
### 新增
|
|
10
|
+
|
|
11
|
+
- 默认 ReactiveMD 渲染路径新增 P0 HTML 兼容,包含富文本折叠、容器、标题、代码、列表、链接和图片。
|
|
12
|
+
- 新增宿主选项 `enableCss`、`enableJavaScript` 和 `enableExtendedHtml`,默认全部关闭。任意开启一个,整篇文档分流到隔离的原生 HTML 路径;该路径停止解析 Markdown 和 ReactiveMD。见 [HTML 部分兼容与暂时性分流政策](docs/html-compatibility-ch.md)。
|
|
13
|
+
- Demo 新增中英文能力开关,导出保留 HTML 模式;静态导出禁用作者 JavaScript。
|
|
14
|
+
- 编辑器内置底栏,显示 Unicode 字数、键盘提示,并提供编辑、并排和预览三种视图。预览内容由宿主提供。切换视图会保留源码选区、撤销记录和预览状态。
|
|
15
|
+
- 窄屏只提供编辑和预览;仅编辑源码时保留字数与键盘提示。
|
|
16
|
+
|
|
17
|
+
### 调整
|
|
18
|
+
|
|
19
|
+
- 编辑区、行号、语法高亮、工具栏和菜单跟随编辑器的浅色、深色或自动主题,不再固定为深色底。
|
|
20
|
+
|
|
5
21
|
## 0.5.0(2026-10-25,next 渠道)
|
|
6
22
|
|
|
7
23
|
兼容 0.4.1。语法仍为 `local-draft-2`,组块协议为 `component-protocol-1`,主题协议为 `reactive-md-theme-1`。现有 `reactive-md`、`reactive-md/react` 和 `reactive-md/styles.css` 导入保持不变,渲染器入口 API 不变。见[0.5.0 发布说明](docs/release-0.5.0-ch.md)。
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
This file records user-visible changes. The project is in a 0.x preview; version and migration rules are in [Versions and compatibility](docs/compatibility-en.md).
|
|
4
4
|
|
|
5
|
+
## 0.5.1 (2026-10-25, next channel)
|
|
6
|
+
|
|
7
|
+
Compatible with 0.5.0. Syntax remains `local-draft-2`, with `component-protocol-1` and `reactive-md-theme-1`. See [0.5.1 release notes](docs/release-0.5.1-en.md).
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Add P0 HTML compatibility to the default ReactiveMD rendering path, including rich disclosures, containers, headings, code, lists, links and images.
|
|
12
|
+
- Add host-owned `enableCss`, `enableJavaScript` and `enableExtendedHtml` options, all off by default. Any enabled option routes the entire document to isolated native HTML. This temporary routing policy disables Markdown and ReactiveMD interpretation in that path; see [HTML compatibility](docs/html-compatibility-en.md).
|
|
13
|
+
- Add localized Demo controls and preserve HTML mode in export. Static export disables author JavaScript.
|
|
14
|
+
- Add a built-in editor status bar with Unicode character count, a keyboard hint and Edit, Split and Preview views. The host supplies preview content. View changes keep the source selection, undo history and preview state.
|
|
15
|
+
- Narrow editor containers offer only Edit and Preview, and source-only editors keep the count and keyboard hint.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- The editor source surface, gutter, syntax highlighting, toolbar and menus now follow the editor light, dark or automatic theme instead of staying on a fixed dark background.
|
|
20
|
+
|
|
5
21
|
## 0.5.0 (2026-10-25, next channel)
|
|
6
22
|
|
|
7
23
|
Compatible with 0.4.1. Syntax remains `local-draft-2`, with `component-protocol-1` and `reactive-md-theme-1`. Existing `reactive-md`, `reactive-md/react` and `reactive-md/styles.css` imports are unchanged, and the renderer entry keeps its API. See [0.5.0 release notes](docs/release-0.5.0-en.md).
|
package/README-ch.md
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
用 Markdown 写本地交互文档。放入输入控件,用 `bind` 命名参数,用 `{{ 表达式 }}` 连接文字、公式、图表和图解。文档作者无需编写 JavaScript 或 CSS。
|
|
6
6
|
|
|
7
|
-
本地模式采用 HTML 风格标签,参数和表格数据直接写在正文中,LaTeX 公式可用于函数绘图。TypeScript 核心和 React 渲染器可独立集成。`0.5.
|
|
7
|
+
本地模式采用 HTML 风格标签,参数和表格数据直接写在正文中,LaTeX 公式可用于函数绘图。TypeScript 核心和 React 渲染器可独立集成。`0.5.1` 是面向 `next` 渠道的预览版,新增 `reactive-md/editor` 源码编辑器;`latest` 仍为 `0.4.0`。语法修订继续为 `local-draft-2`。
|
|
8
8
|
|
|
9
9
|
## 从这里开始
|
|
10
10
|
|
|
11
11
|
- [新用户入门指南](docs/local-guide-ch.md):从 Markdown 过渡到交互文档,含完整练习与错误速查。
|
|
12
12
|
- [本地交互语法规范](docs/local-interaction-syntax-ch.md) · [功能演示与示例](examples/local/README.md):48 个标签名、标签、就地参数与 LaTeX 绘图。
|
|
13
13
|
- [本地模式集成](docs/local-integration-ch.md):`compileLocal`、状态运行时、React 嵌入、URL 策略与样式作用域。
|
|
14
|
+
- [HTML 部分兼容](docs/html-compatibility-ch.md):P0 HTML 与下个发行版针对作者 CSS、JavaScript 和扩展 HTML 的暂时性分流政策。
|
|
14
15
|
- [可分享文档与静态导出](docs/shareable-export-ch.md):单文件交互 HTML、静态输出、版本化状态文件、图片资源、CLI 与独立浏览器 API。
|
|
15
16
|
- [主题协议](docs/theme-protocol-ch.md):文档主题选择、自定义 CSS 与深浅模式。
|
|
16
17
|
- [作者工具](docs/author-tools-ch.md):源码高亮、补全、绑定定位、重命名、格式化与命令行检查。
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
- [独立接入示例](examples/integration/README.md):可复制到仓库外运行的 Node 核心和 React 页面。
|
|
19
20
|
- [版本与兼容性](docs/compatibility-ch.md):0.x 规则、迁移、诊断契约和平台范围。
|
|
20
21
|
- [组块协议](docs/component-protocol-ch.md) · [组块开发指南](docs/component-development-ch.md):新增组件的声明、行为契约和兼容性验收。
|
|
22
|
+
- [0.5.1 发布说明](docs/release-0.5.1-ch.md):编辑器视图与主题,以及 HTML 兼容。
|
|
21
23
|
- [0.5.0 发布说明](docs/release-0.5.0-ch.md):编辑器入口与文档渲染修复。
|
|
22
24
|
- [0.4.1 发布说明](docs/release-0.4.1-ch.md):界面与交互修复,兼容 0.4.0。
|
|
23
25
|
- [0.4.0 发布与迁移](docs/release-0.4.0-ch.md):本 minor 系列包含的能力,以及从 `0.3.1` / `local-draft-1` 升级的方法。
|
|
@@ -45,17 +47,17 @@
|
|
|
45
47
|
npm install reactive-md
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
`latest` 当前为 `0.4.0`。0.5.
|
|
50
|
+
`latest` 当前为 `0.4.0`。0.5.1 预览版面向 `next` 渠道:
|
|
49
51
|
|
|
50
52
|
```sh
|
|
51
53
|
npm install reactive-md@next
|
|
52
54
|
# 或固定预览版
|
|
53
|
-
npm install reactive-md@0.5.
|
|
55
|
+
npm install reactive-md@0.5.1
|
|
54
56
|
```
|
|
55
57
|
|
|
56
|
-
使用预览版前请阅读[0.5.
|
|
58
|
+
使用预览版前请阅读[0.5.1 发布说明](docs/release-0.5.1-ch.md);从 `0.3.1` / `local-draft-1` 升级前请阅读[迁移说明](docs/release-0.4.0-ch.md)。
|
|
57
59
|
|
|
58
|
-
`reactive-md` 入口提供本地编译器、表达式和运行时,`reactive-md/react` 提供 React 渲染器。组件样式通过 `reactive-md/styles.css` 引入。`reactive-md/editor` 提供源码编辑器,并使用独立样式 `reactive-md/editor/styles.css`。现有渲染器和样式导入在 0.5.
|
|
60
|
+
`reactive-md` 入口提供本地编译器、表达式和运行时,`reactive-md/react` 提供 React 渲染器。组件样式通过 `reactive-md/styles.css` 引入。`reactive-md/editor` 提供源码编辑器,并使用独立样式 `reactive-md/editor/styles.css`。现有渲染器和样式导入在 0.5.1 中保持不变。
|
|
59
61
|
|
|
60
62
|
React 入口需要 React 19:
|
|
61
63
|
|
|
@@ -76,7 +78,7 @@ export function Article({ source }: { source: string }) {
|
|
|
76
78
|
|
|
77
79
|
## 用 React 编辑源码
|
|
78
80
|
|
|
79
|
-
0.5.
|
|
81
|
+
0.5.x 预览版在 `reactive-md/editor` 提供可复用的源码编辑器,样式位于 `reactive-md/editor/styles.css`。组件是受控的,需要 React 19:
|
|
80
82
|
|
|
81
83
|
```tsx
|
|
82
84
|
import { useState } from 'react';
|
|
@@ -133,7 +135,7 @@ demo/ 独立的 Playground 应用
|
|
|
133
135
|
- [可分享文档与静态导出](docs/shareable-export-ch.md):CLI build/lint、状态文件、本地图片内联、打印与独立浏览器运行时。
|
|
134
136
|
- [功能演示与示例](examples/local/README.md)与[独立接入示例](examples/integration/README.md)。
|
|
135
137
|
- [React 源码编辑器](docs/editor-ch.md):编辑 `.reactive.md` 源码的受控组件,使用独立样式表。
|
|
136
|
-
- [版本与兼容性](docs/compatibility-ch.md)与[0.5.0 发布说明](docs/release-0.5.0-ch.md)。
|
|
138
|
+
- [版本与兼容性](docs/compatibility-ch.md)、[0.5.1 发布说明](docs/release-0.5.1-ch.md)与[0.5.0 发布说明](docs/release-0.5.0-ch.md)。
|
|
137
139
|
- [0.4.0 发布与迁移](docs/release-0.4.0-ch.md)。
|
|
138
140
|
- [组块协议](docs/component-protocol-ch.md)与[组块开发指南](docs/component-development-ch.md)。
|
|
139
141
|
- [性能说明](docs/performance-ch.md)与[发布清单](docs/releasing-ch.md)。
|
package/README-en.md
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
Write local interactive documents in Markdown. Add input controls, name parameters with `bind`, and connect prose, formulas, charts and diagrams with `{{ expressions }}`. Document authors do not write JavaScript or CSS.
|
|
6
6
|
|
|
7
|
-
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.5.
|
|
7
|
+
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.5.1` is the preview for the `next` channel and adds the `reactive-md/editor` source editor; `latest` remains `0.4.0`. Syntax revision stays `local-draft-2`. See [README-ch.md](README-ch.md) for the Chinese overview.
|
|
8
8
|
|
|
9
9
|
## Start here
|
|
10
10
|
|
|
11
11
|
- [Beginner guide](docs/local-guide-en.md): move from Markdown to interactive documents, with a complete exercise and an error quick reference.
|
|
12
12
|
- [Local interaction syntax specification](docs/local-interaction-syntax-en.md) · [Feature tours and examples](examples/local/README.md): 48 tag names, tags, in-place parameters and LaTeX plots.
|
|
13
13
|
- [Local mode integration](docs/local-integration-en.md): `compileLocal`, the state runtime, React embedding, URL policy and style scoping.
|
|
14
|
+
- [HTML compatibility](docs/html-compatibility-en.md): P0 HTML and the next release's temporary routing policy for author CSS, JavaScript and extended HTML.
|
|
14
15
|
- [Shareable documents and static export](docs/shareable-export-en.md): single-file interactive HTML, static output, versioned state files, assets, the CLI and the standalone browser API.
|
|
15
16
|
- [Theme protocol](docs/theme-protocol-en.md): document theme selection, custom CSS and light/dark modes.
|
|
16
17
|
- [Author tools](docs/author-tools-en.md): source highlighting, completion, binding navigation, rename, formatting and command-line lint.
|
|
@@ -18,6 +19,7 @@ Local mode uses HTML-style tags, with parameters and table data written directly
|
|
|
18
19
|
- [Standalone integration examples](examples/integration/README.md): Node core and React pages you can copy and run outside the repository.
|
|
19
20
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, the diagnostics contract and supported platforms.
|
|
20
21
|
- [Component protocol](docs/component-protocol-en.md) · [Component development guide](docs/component-development-en.md): declarations, behavior contracts and compatibility acceptance for new components.
|
|
22
|
+
- [0.5.1 release notes](docs/release-0.5.1-en.md): editor views and themes, plus HTML compatibility.
|
|
21
23
|
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
22
24
|
- [0.4.1 release notes](docs/release-0.4.1-en.md): visual and interaction fixes, compatible with 0.4.0.
|
|
23
25
|
- [0.4.0 release and migration](docs/release-0.4.0-en.md): what the minor series adds and how to upgrade from `0.3.1` / `local-draft-1`.
|
|
@@ -45,17 +47,17 @@ Reactive MD requires Node.js 22.12 or newer and ships only ESM entries:
|
|
|
45
47
|
npm install reactive-md
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
`latest` resolves to `0.4.0`. The 0.5.
|
|
50
|
+
`latest` resolves to `0.4.0`. The 0.5.1 preview targets `next`:
|
|
49
51
|
|
|
50
52
|
```sh
|
|
51
53
|
npm install reactive-md@next
|
|
52
54
|
# or pin the preview
|
|
53
|
-
npm install reactive-md@0.5.
|
|
55
|
+
npm install reactive-md@0.5.1
|
|
54
56
|
```
|
|
55
57
|
|
|
56
|
-
Read the [0.5.
|
|
58
|
+
Read the [0.5.1 release notes](docs/release-0.5.1-en.md) before using the preview, and the [migration guide](docs/release-0.4.0-en.md) before upgrading from `0.3.1` / `local-draft-1`.
|
|
57
59
|
|
|
58
|
-
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`. The `reactive-md/editor` entry provides the source editor with its own stylesheet at `reactive-md/editor/styles.css`. Existing renderer and style imports are unchanged in 0.5.
|
|
60
|
+
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`. The `reactive-md/editor` entry provides the source editor with its own stylesheet at `reactive-md/editor/styles.css`. Existing renderer and style imports are unchanged in 0.5.1.
|
|
59
61
|
|
|
60
62
|
The core `reactive-md` entry does not depend on React:
|
|
61
63
|
|
|
@@ -95,7 +97,7 @@ export function Article({ source }: { source: string }) {
|
|
|
95
97
|
|
|
96
98
|
## Edit source with React
|
|
97
99
|
|
|
98
|
-
The 0.5.
|
|
100
|
+
The 0.5.x preview adds a reusable source editor at `reactive-md/editor`, with its own stylesheet at `reactive-md/editor/styles.css`. The component is controlled and requires React 19:
|
|
99
101
|
|
|
100
102
|
```tsx
|
|
101
103
|
import { useState } from 'react';
|
|
@@ -151,6 +153,7 @@ demo/ Standalone Playground app
|
|
|
151
153
|
- [Feature tours and examples](examples/local/README.md) and [standalone integrations](examples/integration/README.md).
|
|
152
154
|
- [React source editor](docs/editor-en.md): controlled editor for `.reactive.md` source, with its own stylesheet.
|
|
153
155
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, diagnostics and supported platforms.
|
|
156
|
+
- [0.5.1 release notes](docs/release-0.5.1-en.md): editor views and themes, plus HTML compatibility.
|
|
154
157
|
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
155
158
|
- [0.4.0 release and migration](docs/release-0.4.0-en.md): the upgrade checklist for that minor series.
|
|
156
159
|
- [Component protocol](docs/component-protocol-en.md) and [component development guide](docs/component-development-en.md): contribution contracts, a proposal template and acceptance cases.
|
|
@@ -162,7 +165,7 @@ See the [contributing guide](CONTRIBUTING.md) for development and test commands.
|
|
|
162
165
|
|
|
163
166
|
- CI targets Node 22.12 and Node 24 with Playwright Chromium; local browser checks use Microsoft Edge. The packed check covers static SSR, and `npm run test:shareable` covers the single-file export's static-first hydration. General SSR hydration outside that path, Firefox and WebKit remain unverified.
|
|
164
167
|
- 0.x minor releases may contain breaking changes. Persist the original `.reactive.md` source, not the runtime AST or in-memory state.
|
|
165
|
-
- `latest` is `0.4.0`; the `0.5.
|
|
168
|
+
- `latest` is `0.4.0`; the `0.5.1` preview targets `next`. Security fixes may ship in minor releases.
|
|
166
169
|
|
|
167
170
|
## Contributing and security
|
|
168
171
|
|
package/README.md
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
Write local interactive documents in Markdown. Add input controls, name parameters with `bind`, and connect prose, formulas, charts and diagrams with `{{ expressions }}`. Document authors do not write JavaScript or CSS.
|
|
6
6
|
|
|
7
|
-
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.5.
|
|
7
|
+
Local mode uses HTML-style tags, with parameters and table data written directly in the prose; LaTeX formulas can drive function plots. The TypeScript core and the React renderer can be integrated independently. `0.5.1` is the preview for the `next` channel and adds the `reactive-md/editor` source editor; `latest` remains `0.4.0`. Syntax revision stays `local-draft-2`. See [README-ch.md](README-ch.md) for the Chinese overview.
|
|
8
8
|
|
|
9
9
|
## Start here
|
|
10
10
|
|
|
11
11
|
- [Beginner guide](docs/local-guide-en.md): move from Markdown to interactive documents, with a complete exercise and an error quick reference.
|
|
12
12
|
- [Local interaction syntax specification](docs/local-interaction-syntax-en.md) · [Feature tours and examples](examples/local/README.md): 48 tag names, tags, in-place parameters and LaTeX plots.
|
|
13
13
|
- [Local mode integration](docs/local-integration-en.md): `compileLocal`, the state runtime, React embedding, URL policy and style scoping.
|
|
14
|
+
- [HTML compatibility](docs/html-compatibility-en.md): P0 HTML and the next release's temporary routing policy for author CSS, JavaScript and extended HTML.
|
|
14
15
|
- [Shareable documents and static export](docs/shareable-export-en.md): single-file interactive HTML, static output, versioned state files, assets, the CLI and the standalone browser API.
|
|
15
16
|
- [Theme protocol](docs/theme-protocol-en.md): document theme selection, custom CSS and light/dark modes.
|
|
16
17
|
- [Author tools](docs/author-tools-en.md): source highlighting, completion, binding navigation, rename, formatting and command-line lint.
|
|
@@ -18,6 +19,7 @@ Local mode uses HTML-style tags, with parameters and table data written directly
|
|
|
18
19
|
- [Standalone integration examples](examples/integration/README.md): Node core and React pages you can copy and run outside the repository.
|
|
19
20
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, the diagnostics contract and supported platforms.
|
|
20
21
|
- [Component protocol](docs/component-protocol-en.md) · [Component development guide](docs/component-development-en.md): declarations, behavior contracts and compatibility acceptance for new components.
|
|
22
|
+
- [0.5.1 release notes](docs/release-0.5.1-en.md): editor views and themes, plus HTML compatibility.
|
|
21
23
|
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
22
24
|
- [0.4.1 release notes](docs/release-0.4.1-en.md): visual and interaction fixes, compatible with 0.4.0.
|
|
23
25
|
- [0.4.0 release and migration](docs/release-0.4.0-en.md): what the minor series adds and how to upgrade from `0.3.1` / `local-draft-1`.
|
|
@@ -45,17 +47,17 @@ Reactive MD requires Node.js 22.12 or newer and ships only ESM entries:
|
|
|
45
47
|
npm install reactive-md
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
`latest` resolves to `0.4.0`. The 0.5.
|
|
50
|
+
`latest` resolves to `0.4.0`. The 0.5.1 preview targets `next`:
|
|
49
51
|
|
|
50
52
|
```sh
|
|
51
53
|
npm install reactive-md@next
|
|
52
54
|
# or pin the preview
|
|
53
|
-
npm install reactive-md@0.5.
|
|
55
|
+
npm install reactive-md@0.5.1
|
|
54
56
|
```
|
|
55
57
|
|
|
56
|
-
Read the [0.5.
|
|
58
|
+
Read the [0.5.1 release notes](docs/release-0.5.1-en.md) before using the preview, and the [migration guide](docs/release-0.4.0-en.md) before upgrading from `0.3.1` / `local-draft-1`.
|
|
57
59
|
|
|
58
|
-
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`. The `reactive-md/editor` entry provides the source editor with its own stylesheet at `reactive-md/editor/styles.css`. Existing renderer and style imports are unchanged in 0.5.
|
|
60
|
+
The `reactive-md` entry provides the local compiler, expressions and runtime; `reactive-md/react` provides the React renderer. Import component styles from `reactive-md/styles.css`. The `reactive-md/editor` entry provides the source editor with its own stylesheet at `reactive-md/editor/styles.css`. Existing renderer and style imports are unchanged in 0.5.1.
|
|
59
61
|
|
|
60
62
|
The core `reactive-md` entry does not depend on React:
|
|
61
63
|
|
|
@@ -95,7 +97,7 @@ export function Article({ source }: { source: string }) {
|
|
|
95
97
|
|
|
96
98
|
## Edit source with React
|
|
97
99
|
|
|
98
|
-
The 0.5.
|
|
100
|
+
The 0.5.x preview adds a reusable source editor at `reactive-md/editor`, with its own stylesheet at `reactive-md/editor/styles.css`. The component is controlled and requires React 19:
|
|
99
101
|
|
|
100
102
|
```tsx
|
|
101
103
|
import { useState } from 'react';
|
|
@@ -151,6 +153,7 @@ demo/ Standalone Playground app
|
|
|
151
153
|
- [Feature tours and examples](examples/local/README.md) and [standalone integrations](examples/integration/README.md).
|
|
152
154
|
- [React source editor](docs/editor-en.md): controlled editor for `.reactive.md` source, with its own stylesheet.
|
|
153
155
|
- [Versions and compatibility](docs/compatibility-en.md): 0.x rules, migration, diagnostics and supported platforms.
|
|
156
|
+
- [0.5.1 release notes](docs/release-0.5.1-en.md): editor views and themes, plus HTML compatibility.
|
|
154
157
|
- [0.5.0 release notes](docs/release-0.5.0-en.md): the editor entry and document rendering fixes.
|
|
155
158
|
- [0.4.0 release and migration](docs/release-0.4.0-en.md): the upgrade checklist for that minor series.
|
|
156
159
|
- [Component protocol](docs/component-protocol-en.md) and [component development guide](docs/component-development-en.md): contribution contracts, a proposal template and acceptance cases.
|
|
@@ -162,7 +165,7 @@ See the [contributing guide](CONTRIBUTING.md) for development and test commands.
|
|
|
162
165
|
|
|
163
166
|
- CI targets Node 22.12 and Node 24 with Playwright Chromium; local browser checks use Microsoft Edge. The packed check covers static SSR, and `npm run test:shareable` covers the single-file export's static-first hydration. General SSR hydration outside that path, Firefox and WebKit remain unverified.
|
|
164
167
|
- 0.x minor releases may contain breaking changes. Persist the original `.reactive.md` source, not the runtime AST or in-memory state.
|
|
165
|
-
- `latest` is `0.4.0`; the `0.5.
|
|
168
|
+
- `latest` is `0.4.0`; the `0.5.1` preview targets `next`. Security fixes may ship in minor releases.
|
|
166
169
|
|
|
167
170
|
## Contributing and security
|
|
168
171
|
|
package/SECURITY-ch.md
CHANGED
|
@@ -12,8 +12,9 @@ Reactive MD 渲染作者编写的本地交互文档。文档是不可信输入
|
|
|
12
12
|
|
|
13
13
|
### 文档内容
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
15
|
+
- 三个 HTML 能力开关全部关闭时,作者脚本、事件属性和 CSS 保持惰性。P0 HTML 重建为受控节点和 React 元素。见 [HTML 部分兼容与暂时性分流政策](docs/html-compatibility-ch.md)。
|
|
16
|
+
- 开启 `enableCss`、`enableJavaScript` 或 `enableExtendedHtml` 中任意一个,整篇源码会在不带 `allow-same-origin` 的沙箱 iframe 中按原生 HTML 处理。其他开关继续约束作者源码;允许任意 JavaScript 后,脚本可以动态创建元素和样式,源码开关不构成运行时 DOM 权限。网络、表单和导航继续受 CSP 与沙箱限制。
|
|
17
|
+
- 默认 React 渲染器不调用 `dangerouslySetInnerHTML`,也不把文档内容写入 `innerHTML`。原生 HTML 通过解析和过滤后的 iframe `srcdoc` 渲染,与宿主 DOM 分离。
|
|
17
18
|
- 表达式使用自己的解析器和 AST 求值器,不使用 `eval`、`new Function`,不支持赋值、方法调用、属性访问、原型路径或导入。表达式只能读取文档声明的参数和内置函数。
|
|
18
19
|
- LaTeX 通过受预算限制的解析器计算,并由原生 MathML 渲染;渲染器不执行宏、文件、网络或 HTML 入口。未知命令显示为文本。
|
|
19
20
|
- 表达式、模板、表格和图表不会发起网络请求;图表数据必须写在文档里。
|
|
@@ -59,7 +60,7 @@ Reactive MD 渲染作者编写的本地交互文档。文档是不可信输入
|
|
|
59
60
|
### 可分享 HTML 导出
|
|
60
61
|
|
|
61
62
|
- `reactive-md-state/v1` 只保存公开绑定名和可序列化值,不保存 `@` 内部绑定、revision、节点 ID、AST、UI 状态或计时器。导入前会校验源码摘要、语法、参数集合和每个值;未知或冲突键会拒绝整个文件。
|
|
62
|
-
-
|
|
63
|
+
- 默认 ReactiveMD 交互导出内嵌固定版本的独立运行时,CSP 禁止网络连接、frame、object、base 注入和表单提交。原生 HTML 导出额外允许承载文档的沙箱 `srcdoc` frame,其内部 CSP 控制作者 CSS 与脚本。JSON、源码、标题和 notices 会按 HTML/脚本上下文转义。
|
|
63
64
|
- CLI 只内联位于文档目录或显式资源根内的相对位图。它拒绝远程图片、URL scheme、绝对路径、路径穿越、符号链接逃逸、SVG、伪造格式和超限资源。Demo 导出对话框在包含图片时会禁用 HTML 导出。
|
|
64
65
|
- 静态 HTML 不包含运行时脚本或自动挂载载荷。静态首屏水合目前只在单文件 Chromium/Edge 路径验证,不构成通用水合或沙箱保证。作者完全不可信时应使用 sandboxed iframe。
|
|
65
66
|
- 导出当前参数是宿主/读者的显式动作。生成的状态文件和 HTML 可能包含敏感信息;除非确实要分享当前值,否则应选择作者初值。
|
package/SECURITY.md
CHANGED
|
@@ -12,8 +12,9 @@ The guarantees below are covered by compiler, runtime and renderer tests; capabi
|
|
|
12
12
|
|
|
13
13
|
### Document content
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
15
|
+
- With the three HTML capability options off, author scripts, event attributes and CSS remain inert. P0 HTML is rebuilt as typed nodes and React elements. See [HTML compatibility and the temporary routing policy](docs/html-compatibility-en.md).
|
|
16
|
+
- Enabling `enableCss`, `enableJavaScript` or `enableExtendedHtml` routes the entire source to native HTML inside a sandboxed iframe without `allow-same-origin`. The other flags still constrain author source. Arbitrary enabled JavaScript can create DOM elements and styles dynamically; individual source flags are not runtime DOM permissions. CSP and sandbox restrictions continue to govern network access, forms and navigation.
|
|
17
|
+
- The default React renderer does not call `dangerouslySetInnerHTML` or write document content into `innerHTML`. Native HTML uses a parsed and filtered iframe `srcdoc`, separate from the host DOM.
|
|
17
18
|
- Expressions use their own parser and AST evaluator, with no `eval` or `new Function`, and no support for assignment, method calls, property access, prototype paths or imports. Expressions can only read parameters declared by the document and built-in functions.
|
|
18
19
|
- LaTeX is evaluated by a budget-limited parser and rendered as native MathML; the renderer does not execute macros, files, network or HTML entry points. Unknown commands are displayed as text.
|
|
19
20
|
- Expressions, templates, tables and charts do not make network requests; chart data must be written in the document.
|
|
@@ -59,7 +60,7 @@ Hosts can adjust the syntax node budget for a single compilation with `compileLo
|
|
|
59
60
|
### Shareable HTML export
|
|
60
61
|
|
|
61
62
|
- `reactive-md-state/v1` stores only public binding names and serializable values. It excludes `@` internal bindings, revisions, node IDs, AST data, UI state and timers. Source digest, syntax, parameter set and every value are validated before import; unknown or conflicting keys reject the whole file.
|
|
62
|
-
-
|
|
63
|
+
- Default ReactiveMD interactive exports embed a fixed standalone runtime and a CSP with no network connections, frames, objects, base injection or form submission. Native HTML exports additionally permit the sandboxed `srcdoc` frame that holds the document; its own CSP governs author CSS and scripts. JSON, source, titles and notices are escaped for their HTML/script context.
|
|
63
64
|
- The CLI inlines only relative raster files that resolve inside the document directory or an explicit asset root. It rejects remote images, URL schemes, absolute paths, traversal, symlink escapes, SVG, forged formats and oversized assets. The demo export dialog disables HTML export when images are present.
|
|
64
65
|
- Static HTML contains no runtime script or auto-mount payload. Static-first hydration is covered only in the single-file Chromium/Edge path; it is not a general hydration or sandboxing guarantee. Use a sandboxed iframe for fully untrusted authors.
|
|
65
66
|
- Exporting current parameters is an explicit host/reader action. Treat the generated state file and HTML as potentially sensitive; choose initial values unless current values are intentionally meant to be shared.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
Reactive MD bundles its Markdown and syntax-highlighting dependencies. The standalone HTML runtime also bundles React, React DOM and scheduler. This file preserves license texts for those installed dependency trees, including supporting type packages. The library React entry uses host-provided React and React DOM peers.
|
|
3
|
+
Reactive MD bundles its Markdown, HTML parsing and syntax-highlighting dependencies. The standalone HTML runtime also bundles React, React DOM and scheduler. This file preserves license texts for those installed dependency trees, including supporting type packages. The library React entry uses host-provided React and React DOM peers.
|
|
4
4
|
|
|
5
5
|
Regenerate after dependency updates with `node scripts/generate-notices.mjs`.
|
|
6
6
|
|
|
@@ -343,6 +343,24 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
343
343
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
344
344
|
```
|
|
345
345
|
|
|
346
|
+
## entities@8.1.0
|
|
347
|
+
|
|
348
|
+
Declared license: BSD-2-Clause
|
|
349
|
+
|
|
350
|
+
```text
|
|
351
|
+
Copyright (c) Felix Böhm
|
|
352
|
+
All rights reserved.
|
|
353
|
+
|
|
354
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
355
|
+
|
|
356
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
357
|
+
|
|
358
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
359
|
+
|
|
360
|
+
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
|
361
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
362
|
+
```
|
|
363
|
+
|
|
346
364
|
## escape-string-regexp@5.0.0
|
|
347
365
|
|
|
348
366
|
Declared license: MIT
|
|
@@ -1716,6 +1734,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
1716
1734
|
SOFTWARE.
|
|
1717
1735
|
```
|
|
1718
1736
|
|
|
1737
|
+
## parse5@8.0.1
|
|
1738
|
+
|
|
1739
|
+
Declared license: MIT
|
|
1740
|
+
|
|
1741
|
+
```text
|
|
1742
|
+
Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
|
|
1743
|
+
|
|
1744
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1745
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1746
|
+
in the Software without restriction, including without limitation the rights
|
|
1747
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1748
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1749
|
+
furnished to do so, subject to the following conditions:
|
|
1750
|
+
|
|
1751
|
+
The above copyright notice and this permission notice shall be included in
|
|
1752
|
+
all copies or substantial portions of the Software.
|
|
1753
|
+
|
|
1754
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1755
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1756
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1757
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1758
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1759
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1760
|
+
THE SOFTWARE.
|
|
1761
|
+
```
|
|
1762
|
+
|
|
1719
1763
|
## react-dom@19.3.1
|
|
1720
1764
|
|
|
1721
1765
|
Declared license: MIT
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.reactive-md-editor .editor-toolbar{--editor-toolbar-bg:#161d29;--editor-toolbar-bg-deep:#101722;--editor-toolbar-border:#ffffff14;--editor-toolbar-line:#ffffff24;--editor-toolbar-ink:#b9c3d2;--editor-toolbar-ink-strong:#fff;--editor-toolbar-muted:#8b99ad;--editor-toolbar-hover:#ffffff14;--editor-toolbar-focus:#7aa2ff;--editor-toolbar-accent:#8fe3d4;z-index:20;width:100%;color:var(--editor-toolbar-ink);background:linear-gradient(180deg, #ffffff09, transparent 45%), linear-gradient(180deg, var(--editor-toolbar-bg), var(--editor-toolbar-bg-deep));border:0;border-bottom:1px solid var(--editor-toolbar-border);border-radius:calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;box-shadow:none;font-family:var(--font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);flex-wrap:wrap;align-items:center;gap:2px;margin:0;padding:6px 8px;line-height:1;display:flex;position:relative}.reactive-md-editor .editor-toolbar,.reactive-md-editor .editor-toolbar *,.reactive-md-editor .editor-toolbar :before,.reactive-md-editor .editor-toolbar :after{box-sizing:border-box}.reactive-md-editor .editor-toolbar-slot{flex:none;align-items:center;display:inline-flex;position:relative}.reactive-md-editor .editor-toolbar-slot-native{margin-left:4px}.reactive-md-editor .editor-toolbar-mobile-only{display:none}.reactive-md-editor .editor-toolbar-button{appearance:none;width:30px;height:30px;color:var(--editor-toolbar-ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:2px;padding:0;transition:background-color .15s,color .15s,transform .1s,opacity .15s;display:inline-flex;position:relative}.reactive-md-editor .editor-toolbar-button:active:not(:disabled){background:#ffffff1f;transform:translateY(1px)scale(.97)}.reactive-md-editor .editor-toolbar-button[aria-expanded=true]{color:var(--editor-toolbar-ink-strong);background:#ffffff1f}.reactive-md-editor .editor-toolbar-button.is-active{color:#dbe7ff;background:#7aa2ff29;box-shadow:inset 0 0 0 1px #7aa2ff3d}.reactive-md-editor .editor-toolbar-button:disabled{opacity:.34;cursor:not-allowed}.reactive-md-editor .editor-toolbar-icon{flex:none;width:18px;height:18px;display:block}.reactive-md-editor .editor-toolbar-glyph{width:18px;height:18px;font-family:var(--font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);justify-content:center;align-items:center;font-size:14px;font-weight:650;line-height:1;display:inline-flex}.reactive-md-editor .editor-toolbar-glyph.is-bold{letter-spacing:-.03em;font-size:15px;font-weight:850}.reactive-md-editor .editor-toolbar-glyph.is-italic{padding-right:1px;font-family:Georgia,Times New Roman,serif;font-size:16px;font-style:italic;font-weight:700}.reactive-md-editor .editor-toolbar-heading-trigger{gap:4px;width:auto;min-width:76px;padding:0 8px}.reactive-md-editor .editor-toolbar-heading-label{letter-spacing:.005em;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12.5px;font-weight:650;overflow:hidden}.reactive-md-editor .editor-toolbar-heading-label-compact{display:none}.reactive-md-editor .editor-toolbar-list-trigger{gap:0;width:auto;padding:0 4px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:4px;width:auto;padding:0 7px 0 6px}.reactive-md-editor .editor-toolbar-insert-label{letter-spacing:.005em;white-space:nowrap;font-size:12px;font-weight:600}.reactive-md-editor .editor-toolbar-chevron{opacity:.55;width:9px;height:9px;margin-left:-1px;transition:opacity .15s}.reactive-md-editor .editor-toolbar-button:hover .editor-toolbar-chevron,.reactive-md-editor .editor-toolbar-button[aria-expanded=true] .editor-toolbar-chevron{opacity:.95}.reactive-md-editor .editor-toolbar-components-trigger{color:#d6e3ff;letter-spacing:.01em;background:linear-gradient(135deg,#4a80ff38,#2dd4bf26);border:1px solid #7aa2ff42;border-radius:999px;gap:5px;width:auto;min-width:94px;padding:0 10px 0 8px;font-size:12px;font-weight:650}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:16px;height:16px;color:var(--editor-toolbar-accent)}.reactive-md-editor .editor-toolbar-components-label{white-space:nowrap}.reactive-md-editor .editor-toolbar-components-label-compact{display:none}.reactive-md-editor .editor-toolbar-components-trigger[aria-expanded=true]{color:#fff;background:linear-gradient(135deg,#548bff57,#2dd4bf3d);border-color:#8fe3d47a}.reactive-md-editor .editor-toolbar-history{align-items:center;gap:1px;margin-left:auto;display:flex}@container editor-frame (width<=500px){.reactive-md-editor .editor-toolbar{gap:1px}.reactive-md-editor .editor-toolbar-heading-trigger{padding-inline:5px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:2px;padding-inline:4px}.reactive-md-editor .editor-toolbar-components-trigger{gap:3px;padding-inline:5px}.reactive-md-editor .editor-toolbar-history>.editor-toolbar-desktop-only{display:none}.reactive-md-editor .editor-toolbar-slot.editor-toolbar-mobile-only{display:inline-flex}.reactive-md-editor .editor-toolbar-more-menu .editor-toolbar-more-link{display:none}}@media (hover:hover) and (pointer:fine){.reactive-md-editor .editor-toolbar-button[data-tooltip]:after{content:attr(data-tooltip);z-index:90;color:#e6edf7;font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);letter-spacing:0;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;background:#0b111c;border:1px solid #ffffff1f;border-radius:6px;padding:4px 7px;font-size:11.5px;font-weight:500;line-height:1.4;transition:opacity .12s,transform .12s,visibility .12s;position:absolute;top:calc(100% + 7px);left:50%;transform:translate(-50%,-2px);box-shadow:0 8px 20px -10px #000000e6}.reactive-md-editor .editor-toolbar-button[data-tooltip]:hover:after,.reactive-md-editor .editor-toolbar-button[data-tooltip]:focus-visible:after{opacity:1;visibility:visible;transform:translate(-50%)}.reactive-md-editor .editor-toolbar-button[aria-expanded=true]:after,.reactive-md-editor .editor-toolbar.is-menu-open .editor-toolbar-button[data-tooltip]:after{display:none}.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:after{left:auto;right:0;transform:translateY(-2px)}.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:hover:after,.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:focus-visible:after{transform:translateY(0)}}.reactive-md-editor .editor-toolbar-popover{z-index:50;color:#dbe4f0;transform-origin:0 0;background:linear-gradient(#ffffff06,#0000 40%),linear-gradient(#151d2a,#101722 72%);border:1px solid #ffffff1a;border-radius:12px;animation:.13s ease-out editor-toolbar-pop-in;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 24px 50px -20px #000000e6,0 8px 22px -12px #0009,inset 0 1px #ffffff0d}.reactive-md-editor .editor-toolbar-heading-menu{width:min(204px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-list-menu{width:min(220px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-insert-menu{width:min(228px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-more-menu{transform-origin:100% 0;width:min(188px,100vw - 24px);padding:6px;left:auto;right:0}.reactive-md-editor .editor-toolbar-menu-item{appearance:none;color:#c8d3e2;width:100%;min-height:32px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:9px;padding:6px 9px;font-size:12.5px;transition:background-color .12s,color .12s;display:flex}.reactive-md-editor .editor-toolbar-menu-item:disabled{opacity:.36;cursor:not-allowed}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true]{color:#eef4ff;background:#548bff24}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true]:after{content:"✓";color:#9dbcff;margin-left:auto;font-size:12px;font-weight:700}.reactive-md-editor .editor-toolbar-menu-icon{color:#8fa2ba;width:16px;height:16px}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true] .editor-toolbar-menu-icon,.reactive-md-editor .editor-toolbar-menu-item:hover:not(:disabled) .editor-toolbar-menu-icon{color:#b9cff6}.reactive-md-editor .editor-toolbar-menu-divider{background:#ffffff14;height:1px;margin:4px 6px}.reactive-md-editor .editor-toolbar-heading-item{gap:9px;padding:5px 8px}.reactive-md-editor .editor-toolbar-list-item,.reactive-md-editor .editor-toolbar-insert-item,.reactive-md-editor .editor-toolbar-more-item{gap:9px}.reactive-md-editor .editor-toolbar-heading-sample{color:#93a4bb;flex:0 0 26px;justify-content:center;align-items:center;font-family:Georgia,Times New Roman,serif;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.reactive-md-editor .editor-toolbar-heading-sample.is-level-0{font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);letter-spacing:.06em;font-size:10px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-1{color:#c9d9fa;font-size:15px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-2{color:#c2d2f1;font-size:14px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-3{color:#b8c8e4;font-size:13px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-4{color:#aebdd6;font-size:12px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-5{color:#a3b1c8;font-size:11.5px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-6{color:#98a6bb;font-size:11px}.reactive-md-editor .editor-toolbar-emoji-menu{width:min(300px,100vw - 24px);padding:8px}.reactive-md-editor .editor-toolbar-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;display:grid}.reactive-md-editor .editor-toolbar-emoji{appearance:none;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;width:100%;height:30px;padding:0;font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:17px;line-height:1;transition:background-color .12s,transform .1s;display:inline-flex}.reactive-md-editor .editor-toolbar-emoji:active{transform:scale(.92)}.reactive-md-editor .editor-toolbar-native-menu{transform-origin:100% 0;flex-direction:column;width:min(364px,100vw - 24px);max-height:min(430px,72vh);padding:8px;display:flex;left:auto;right:0;overflow:hidden}.reactive-md-editor .editor-toolbar-native-head{flex:none;justify-content:space-between;align-items:center;gap:8px;padding:2px 2px 8px;display:flex}.reactive-md-editor .editor-toolbar-native-title{color:#eef4ff;letter-spacing:.01em;font-size:13px;font-weight:700}.reactive-md-editor .editor-toolbar-close{appearance:none;color:#9aa9bd;cursor:pointer;background:0 0;border:0;border-radius:7px;flex:none;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background-color .12s,color .12s;display:inline-flex}.reactive-md-editor .editor-toolbar-close .editor-toolbar-icon{width:14px;height:14px}.reactive-md-editor .editor-toolbar-search{background:#ffffff0b;border:1px solid #ffffff17;border-radius:8px;flex:none;align-items:center;gap:7px;margin-bottom:6px;padding:6px 9px;transition:background-color .15s,border-color .15s,box-shadow .15s;display:flex}.reactive-md-editor .editor-toolbar-search:focus-within{background:#ffffff0f;border-color:#7aa2ffa6;box-shadow:0 0 0 2px #548bff2e}.reactive-md-editor .editor-toolbar-search-icon{color:#7f8fa6;width:15px;height:15px}.reactive-md-editor .editor-toolbar-search-input{appearance:none;color:#e6edf7;width:100%;min-width:0;font:inherit;background:0 0;border:0;outline:none;flex:auto;margin:0;padding:0;font-size:12.5px;line-height:1.4}.reactive-md-editor .editor-toolbar-search-input::placeholder{color:#718096}.reactive-md-editor .editor-toolbar-search-input::-webkit-search-decoration{appearance:none}.reactive-md-editor .editor-toolbar-search-input::-webkit-search-cancel-button{appearance:none}.reactive-md-editor .editor-toolbar-native-scroll{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff2e transparent;flex:auto;min-height:0;max-height:300px;padding-right:3px;overflow-y:auto}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar{width:6px}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-track{background:0 0}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-thumb{background:#ffffff29;border-radius:999px}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-thumb:hover{background:#ffffff42}.reactive-md-editor .editor-toolbar-native-group{padding:2px 0 4px}.reactive-md-editor .editor-toolbar-native-group+.editor-toolbar-native-group{border-top:1px solid #ffffff0f;margin-top:3px;padding-top:6px}.reactive-md-editor .editor-toolbar-native-group-title{color:#8595ac;letter-spacing:.09em;text-transform:uppercase;margin:2px 8px 5px;font-size:11px;font-weight:700}.reactive-md-editor .editor-toolbar-native-item{appearance:none;color:#c9d4e3;width:100%;min-height:42px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:7px 8px;transition:background-color .12s,color .12s;display:flex}.reactive-md-editor .editor-toolbar-native-copy{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.reactive-md-editor .editor-toolbar-native-label{color:#e5ecf7;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.reactive-md-editor .editor-toolbar-native-description{color:#95a4b9;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:1.5;display:block;overflow:hidden}.reactive-md-editor .editor-toolbar-native-badge{color:var(--editor-toolbar-accent);letter-spacing:.04em;border:1px solid #8fe3d447;border-radius:4px;flex:none;padding:0 4px;font-size:9px;font-weight:650;line-height:1.55}.reactive-md-editor .editor-toolbar-native-add{color:#7f93ad;opacity:.35;flex:none;width:14px;height:14px;transition:color .12s,opacity .12s}.reactive-md-editor .editor-toolbar-menu-empty{color:var(--editor-toolbar-muted);text-align:center;margin:16px 8px;font-size:12px;line-height:1.6}@media (hover:hover) and (pointer:fine){.reactive-md-editor .editor-toolbar-button:hover:not(:disabled){color:var(--editor-toolbar-ink-strong);background:var(--editor-toolbar-hover)}.reactive-md-editor .editor-toolbar-button.is-active:hover:not(:disabled){color:#eef4ff;background:#7aa2ff3b}.reactive-md-editor .editor-toolbar-components-trigger:hover:not(:disabled){color:#fff;background:linear-gradient(135deg,#548bff52,#2dd4bf3d);border-color:#7aa2ff80}.reactive-md-editor .editor-toolbar-emoji:hover{background:#ffffff17}.reactive-md-editor .editor-toolbar-menu-item:hover:not(:disabled),.reactive-md-editor .editor-toolbar-native-item:hover{color:#fff;background:#ffffff14}.reactive-md-editor .editor-toolbar-native-item:hover .editor-toolbar-native-add{color:#93b6ff;opacity:1}.reactive-md-editor .editor-toolbar-close:hover{color:#fff;background:#ffffff14}}.reactive-md-editor .editor-toolbar-button:focus-visible,.reactive-md-editor .editor-toolbar-emoji:focus-visible,.reactive-md-editor .editor-toolbar-menu-item:focus-visible,.reactive-md-editor .editor-toolbar-native-item:focus-visible,.reactive-md-editor .editor-toolbar-close:focus-visible{outline:2px solid var(--editor-toolbar-focus);outline-offset:2px}.reactive-md-editor .editor-toolbar-emoji:focus-visible{outline-offset:1px}.reactive-md-editor .editor-toolbar-menu-item:focus-visible,.reactive-md-editor .editor-toolbar-native-item:focus-visible{outline-offset:-2px}@media (width<=640px){.reactive-md-editor .editor-toolbar{gap:0;padding:4px 2px}.reactive-md-editor .editor-toolbar-desktop-only{display:none!important}.reactive-md-editor .editor-toolbar-slot.editor-toolbar-mobile-only{display:inline-flex}.reactive-md-editor .editor-toolbar-slot-native{margin-left:1px}.reactive-md-editor .editor-toolbar-heading-trigger{gap:2px;min-width:44px;padding:0 4px}.reactive-md-editor .editor-toolbar-heading-label{font-size:12px}.reactive-md-editor .editor-toolbar-heading-label-full{display:none}.reactive-md-editor .editor-toolbar-heading-label-compact{display:inline}.reactive-md-editor .editor-toolbar-more-menu .editor-toolbar-more-link{display:flex}.reactive-md-editor .editor-toolbar-list-trigger{padding:0 1px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:2px;padding:0 3px}.reactive-md-editor .editor-toolbar-insert-trigger .editor-toolbar-chevron{display:none}.reactive-md-editor .editor-toolbar-insert-label{font-size:11.5px}.reactive-md-editor .editor-toolbar-components-trigger{gap:3px;min-width:0;padding:0 6px 0 5px;font-size:11px}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:14px;height:14px}.reactive-md-editor .editor-toolbar-components-label-full{display:none}.reactive-md-editor .editor-toolbar-components-label-compact{display:inline}.reactive-md-editor .editor-toolbar-history{gap:0}.reactive-md-editor .editor-toolbar-heading-menu{width:min(200px,100vw - 24px)}.reactive-md-editor .editor-toolbar-list-menu{width:min(208px,100vw - 48px)}.reactive-md-editor .editor-toolbar-insert-menu{transform-origin:100% 100%;width:min(216px,100vw - 24px);left:auto;right:0}.reactive-md-editor .editor-toolbar-more-menu{transform-origin:100% 100%;width:min(188px,100vw - 24px)}.reactive-md-editor .editor-toolbar-heading-menu,.reactive-md-editor .editor-toolbar-list-menu,.reactive-md-editor .editor-toolbar-insert-menu,.reactive-md-editor .editor-toolbar-more-menu{overscroll-behavior:contain;animation-name:editor-toolbar-pop-up;position:fixed;top:auto;bottom:calc(100% + 6px);overflow-y:auto}.reactive-md-editor .editor-toolbar-heading-menu,.reactive-md-editor .editor-toolbar-list-menu{transform-origin:0 100%}.reactive-md-editor .editor-toolbar-emoji-menu{z-index:80;overscroll-behavior:contain;transform-origin:bottom;width:auto;max-width:380px;margin:0 auto;position:fixed;inset:auto 8px 12px;overflow-x:auto}.reactive-md-editor .editor-toolbar-native-menu{z-index:80;transform-origin:bottom;width:auto;max-height:min(68vh,460px);position:fixed;inset:auto 10px 10px}.reactive-md-editor .editor-toolbar-native-scroll{max-height:none}}@media (width<=400px){.reactive-md-editor .editor-toolbar-heading-trigger{padding:0 2px}.reactive-md-editor .editor-toolbar-insert-trigger{padding:0 1px}.reactive-md-editor .editor-toolbar-components-trigger{gap:1px;padding:0 3px;font-size:10.5px}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:13px;height:13px}}@media (pointer:coarse){.reactive-md-editor .editor-toolbar-button{border-radius:10px;width:44px;height:44px}.reactive-md-editor .editor-toolbar-heading-trigger,.reactive-md-editor .editor-toolbar-list-trigger,.reactive-md-editor .editor-toolbar-insert-trigger,.reactive-md-editor .editor-toolbar-components-trigger{width:auto;min-height:44px}.reactive-md-editor .editor-toolbar-heading-trigger,.reactive-md-editor .editor-toolbar-list-trigger{min-width:44px}.reactive-md-editor .editor-toolbar-menu-item,.reactive-md-editor .editor-toolbar-native-item,.reactive-md-editor .editor-toolbar-search{min-height:44px}.reactive-md-editor .editor-toolbar-emoji-menu{width:auto;padding:6px}.reactive-md-editor .editor-toolbar-emoji-grid{grid-template-columns:repeat(8,44px);justify-content:center;gap:1px}.reactive-md-editor .editor-toolbar-emoji,.reactive-md-editor .editor-toolbar-close{width:44px;height:44px}.reactive-md-editor .editor-toolbar-close .editor-toolbar-icon{width:18px;height:18px}.reactive-md-editor .editor-toolbar-native-item{padding:8px}}@media (prefers-reduced-motion:reduce){.reactive-md-editor .editor-toolbar-popover{animation:none}.reactive-md-editor .editor-toolbar-button,.reactive-md-editor .editor-toolbar-button[data-tooltip]:after,.reactive-md-editor .editor-toolbar-emoji,.reactive-md-editor .editor-toolbar-menu-item,.reactive-md-editor .editor-toolbar-native-item,.reactive-md-editor .editor-toolbar-native-add,.reactive-md-editor .editor-toolbar-close{transition-duration:.01ms}.reactive-md-editor .editor-toolbar-button:active:not(:disabled),.reactive-md-editor .editor-toolbar-emoji:active{transform:none}}@keyframes editor-toolbar-pop-in{0%{opacity:0;transform:translateY(-4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes editor-toolbar-pop-up{0%{opacity:0;transform:translateY(4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}.reactive-md-editor .editor-input-wrap{flex:auto;min-width:0;min-height:0;display:flex;position:relative}.reactive-md-editor .editor-input-wrap>.editor-input{color:#0000;-webkit-text-fill-color:transparent;width:100%;height:100%;caret-color:var(--blue);flex:none;position:absolute;inset:0}.reactive-md-editor .editor-input-wrap>.editor-input::selection{background:color-mix(in srgb, var(--blue) 30%, transparent);color:#0000;-webkit-text-fill-color:transparent}.reactive-md-editor .author-highlight{height:100%;padding:var(--space-3) var(--space-4);color:var(--code-ink);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0;right:0;overflow:hidden}.reactive-md-editor .author-highlight-content{will-change:transform;contain:layout style paint;transform:translate(0,0)}.reactive-md-editor .author-token-tag{color:color-mix(in srgb, var(--blue) 82%, var(--code-ink))}.reactive-md-editor .author-token-attribute{color:color-mix(in srgb, var(--teal) 72%, var(--code-ink))}.reactive-md-editor .author-token-string{color:color-mix(in srgb, var(--success) 78%, var(--code-ink))}.reactive-md-editor .author-token-expression{color:color-mix(in srgb, var(--warning) 74%, var(--code-ink))}.reactive-md-editor .author-token-binding{color:color-mix(in srgb, var(--blue-deep) 70%, var(--code-ink));text-decoration:underline;-webkit-text-decoration-color:color-mix(in srgb, var(--blue) 40%, transparent);text-decoration-color:color-mix(in srgb, var(--blue) 40%, transparent);text-underline-offset:2px}.reactive-md-editor .author-token-markdown{color:color-mix(in srgb, var(--code-ink) 78%, var(--code-bg))}.reactive-md-editor .author-token-math{color:color-mix(in srgb, var(--warning) 60%, var(--code-ink))}.reactive-md-editor .author-token-code{color:color-mix(in srgb, var(--code-ink) 62%, var(--code-bg))}.reactive-md-editor .author-token-comment{color:color-mix(in srgb, var(--code-ink) 52%, var(--code-bg))}.reactive-md-editor .editor-shell.is-composing .author-highlight{visibility:hidden}.reactive-md-editor .editor-shell.is-composing .editor-input-wrap>.editor-input{color:var(--code-ink);-webkit-text-fill-color:currentColor}@media (width<=620px){.reactive-md-editor .author-highlight{padding:var(--space-3);font-size:var(--text-xs)}}.reactive-md-editor .source-authoring{margin-top:var(--space-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);position:relative;overflow:hidden}.reactive-md-editor .authoring-bar{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-2) var(--space-3);background:var(--surface-subtle);border-bottom:1px solid var(--line);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-title{color:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.04em;text-transform:uppercase}.reactive-md-editor .authoring-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-button{min-height:var(--control-height-sm);padding:0 var(--space-3);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);line-height:1}.reactive-md-editor .authoring-button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.reactive-md-editor .authoring-button:active:not(:disabled){background:var(--surface-active)}.reactive-md-editor .authoring-button:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-button:disabled{opacity:var(--disabled-opacity);cursor:not-allowed}.reactive-md-editor .authoring-button.authoring-primary{background:var(--blue);border-color:var(--blue);color:var(--surface)}.reactive-md-editor .authoring-button.authoring-primary:hover:not(:disabled){background:var(--blue-deep);border-color:var(--blue-deep)}.reactive-md-editor .authoring-body{gap:var(--space-3);padding:var(--space-3);display:grid}.reactive-md-editor .authoring-caret{align-items:center;gap:var(--space-1) var(--space-2);color:var(--ink);font-size:var(--text-sm);flex-wrap:wrap;margin:0;display:flex}.reactive-md-editor .authoring-caret-value{align-items:center;gap:var(--space-1) var(--space-3);flex-wrap:wrap;min-width:0;display:flex}.reactive-md-editor .authoring-caret-value>strong{font-family:var(--font-mono);font-size:var(--text-sm);overflow-wrap:anywhere}.reactive-md-editor .authoring-type{padding:1px var(--space-2);background:var(--neutral-soft);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-soft);font-size:var(--text-xs)}.reactive-md-editor .authoring-label{color:var(--ink-muted);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.02em}.reactive-md-editor .authoring-muted,.reactive-md-editor .authoring-empty{color:var(--ink-muted);font-size:var(--text-sm);margin:0}.reactive-md-editor .authoring-row{gap:var(--space-1);min-width:0;display:grid}.reactive-md-editor .authoring-binding-list{gap:var(--space-1);flex-wrap:wrap;max-height:108px;display:flex;overflow:auto}.reactive-md-editor .authoring-binding-chip{align-items:center;gap:var(--space-1);max-width:100%;min-height:var(--control-height-sm);padding:0 var(--space-2);overflow-wrap:anywhere;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-soft);font-family:var(--font-mono);font-size:var(--text-xs);cursor:pointer;display:inline-flex}.reactive-md-editor .authoring-binding-chip:hover{background:var(--surface-hover);color:var(--ink)}.reactive-md-editor .authoring-binding-chip[aria-pressed=true]{background:color-mix(in srgb, var(--blue) 12%, var(--surface));border-color:var(--blue);color:var(--ink);box-shadow:inset 0 -2px 0 var(--blue)}.reactive-md-editor .authoring-binding-chip:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-binding-count{color:var(--ink-muted);font-size:10px}.reactive-md-editor .authoring-locations{gap:var(--space-1);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-location{align-items:center;gap:var(--space-1);min-height:var(--control-height-sm);padding:0 var(--space-2);background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-control);color:var(--ink-soft);font-size:var(--text-xs);cursor:pointer;flex-wrap:wrap;display:inline-flex}.reactive-md-editor .authoring-location:hover{background:var(--surface-hover);border-color:var(--line-strong);color:var(--ink)}.reactive-md-editor .authoring-location:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-location.is-declaration{border-left:2px solid var(--blue)}.reactive-md-editor .authoring-location.is-reference{border-left:2px solid var(--success)}.reactive-md-editor .authoring-location-position{color:var(--ink-muted);font-family:var(--font-mono);font-size:10px}.reactive-md-editor .authoring-rename{gap:var(--space-1);padding-top:var(--space-3);border-top:1px solid var(--line);display:grid}.reactive-md-editor .authoring-rename-row{gap:var(--space-2);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-rename-input{min-width:0;min-height:var(--control-height-sm);padding:0 var(--space-3);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-family:var(--font-mono);font-size:var(--text-sm);flex:180px}.reactive-md-editor .authoring-rename-input:focus-visible{outline:var(--focus-outline);outline-offset:1px}.reactive-md-editor .authoring-rename-input:disabled{opacity:var(--disabled-opacity)}.reactive-md-editor .authoring-error{color:var(--danger);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-hint{color:var(--ink-muted);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-status{color:var(--success);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-completion{border-bottom:1px solid var(--line);background:var(--surface)}.reactive-md-editor .authoring-completion-head{justify-content:space-between;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);color:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-semibold);display:flex}.reactive-md-editor .authoring-completion-count{color:var(--ink-muted);font-weight:var(--weight-regular)}.reactive-md-editor .authoring-completion-list{max-height:220px;padding:0 var(--space-2) var(--space-2);overflow:auto}.reactive-md-editor .authoring-completion-item{align-items:baseline;gap:2px var(--space-2);width:100%;min-height:var(--control-height-sm);padding:var(--space-1) var(--space-2);border-radius:var(--radius-control);color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:auto minmax(0,1fr);display:grid}.reactive-md-editor .authoring-completion-item:hover,.reactive-md-editor .authoring-completion-item.is-active{background:color-mix(in srgb, var(--blue) 10%, var(--surface));border-color:var(--blue-line)}.reactive-md-editor .authoring-completion-item:focus-visible{outline:var(--focus-outline);outline-offset:1px}.reactive-md-editor .authoring-kind{padding:1px var(--space-1);background:var(--neutral-soft);border-radius:var(--radius-control);color:var(--ink-muted);font-size:10px;font-weight:var(--weight-semibold);text-transform:uppercase;white-space:nowrap}.reactive-md-editor .authoring-kind.is-tag{color:var(--blue-deep)}.reactive-md-editor .authoring-kind.is-attribute{color:var(--teal)}.reactive-md-editor .authoring-kind.is-binding{color:var(--warning)}.reactive-md-editor .authoring-completion-label{min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reactive-md-editor .authoring-completion-detail{min-width:0;color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;grid-column:2;font-size:10px;overflow:hidden}@media (width<=640px){.reactive-md-editor .authoring-bar,.reactive-md-editor .authoring-body{padding:var(--space-2)}.reactive-md-editor .authoring-button,.reactive-md-editor .authoring-binding-chip,.reactive-md-editor .authoring-location,.reactive-md-editor .authoring-rename-input,.reactive-md-editor .authoring-completion-item{min-height:var(--control-height-lg)}.reactive-md-editor .authoring-rename-input{flex-basis:100%}.reactive-md-editor .authoring-completion-list{max-height:180px}}.reactive-md-editor{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--surface:#fff;--surface-subtle:#f7f7f5;--surface-hover:color-mix(in srgb, var(--ink) 5%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 8%, var(--surface));--ink:#232323;--ink-soft:#4f4f4d;--ink-muted:#6f6f6c;--line:#e4e3df;--line-strong:#d0cfc9;--blue:#3f5f8f;--blue-deep:#33507a;--blue-soft:#eef1f6;--blue-line:#d8dfe9;--teal:#167875;--success:var(--teal);--warning:#8a5a10;--danger:#a2273a;--neutral-soft:#f1f0ed;--focus:var(--blue);--focus-outline:2px solid var(--focus);--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent);--code-bg:#0f172a;--code-bg-deep:#0b1220;--code-ink:#dce6ff;--text-xs:12.5px;--text-sm:14px;--text-md:16px;--leading-tight:1.3;--leading-snug:1.5;--leading-normal:1.6;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-control:6px;--radius-card:12px;--radius-pill:999px;--radius-md:var(--radius-card);--control-height-sm:32px;--control-height-lg:44px;--control-inset-x:19px;--disabled-opacity:.45;--motion-fast:.16s;--ease-standard:cubic-bezier(.22, .61, .36, 1);--font-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;--font-mono:"Cascadia Code", "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", monospace;min-width:0;color:var(--ink);font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--leading-normal);flex-direction:column;display:flex}.reactive-md-editor,.reactive-md-editor *,.reactive-md-editor :before,.reactive-md-editor :after{box-sizing:border-box}.reactive-md-editor button,.reactive-md-editor input,.reactive-md-editor textarea{font:inherit}.reactive-md-editor[data-editor-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1b1b1d;--surface-subtle:#202022;--surface-hover:color-mix(in srgb, var(--ink) 8%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 12%, var(--surface));--ink:#ecebe7;--ink-soft:#c3c1bb;--ink-muted:#9b9993;--line:#343436;--line-strong:#4d4d4f;--blue:#47679f;--blue-deep:#5574ad;--blue-soft:#232a35;--blue-line:#37445a;--teal:#68ccc2;--success:var(--teal);--warning:#f0b84f;--danger:#ffa0ae;--neutral-soft:#26262a;--focus:#a9bce3;--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent)}@media (prefers-color-scheme:dark){.reactive-md-editor[data-editor-theme=auto]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1b1b1d;--surface-subtle:#202022;--surface-hover:color-mix(in srgb, var(--ink) 8%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 12%, var(--surface));--ink:#ecebe7;--ink-soft:#c3c1bb;--ink-muted:#9b9993;--line:#343436;--line-strong:#4d4d4f;--blue:#47679f;--blue-deep:#5574ad;--blue-soft:#232a35;--blue-line:#37445a;--teal:#68ccc2;--success:var(--teal);--warning:#f0b84f;--danger:#ffa0ae;--neutral-soft:#26262a;--focus:#a9bce3;--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent)}}.reactive-md-editor .reactive-md-editor-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.reactive-md-editor .editor-frame{background:var(--code-bg);border:1px solid color-mix(in srgb, var(--code-ink) 12%, var(--code-bg));border-radius:var(--radius-card);min-width:0;height:560px;min-height:280px;transition:border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);flex-direction:column;display:flex;position:relative;overflow:visible;container:editor-frame/inline-size}.reactive-md-editor .editor-frame:focus-within{border-color:var(--focus);box-shadow:var(--focus-ring)}.reactive-md-editor .editor-shell{background:var(--code-bg);border-radius:0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);border:0;flex:auto;height:auto;min-height:0;display:flex;position:relative;overflow:hidden}.reactive-md-editor .editor-gutter{flex:0 0 var(--space-7);padding:var(--space-3) 0;background:var(--code-bg-deep);border-right:1px solid color-mix(in srgb, var(--code-ink) 10%, var(--code-bg-deep));color:color-mix(in srgb, var(--code-ink) 48%, var(--code-bg-deep));font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);text-align:right;-webkit-user-select:none;user-select:none;overflow:hidden}.reactive-md-editor .gutter-line{padding-right:var(--space-2);white-space:nowrap;border-left:2px solid #0000;display:block}.reactive-md-editor .gutter-line.is-active{background:color-mix(in srgb, var(--blue) 18%, transparent);border-left-color:var(--blue);color:var(--code-ink)}.reactive-md-editor .gutter-line.is-diagnostic{border-left-color:color-mix(in srgb, var(--danger) 80%, var(--code-ink));color:color-mix(in srgb, var(--danger) 58%, var(--code-ink))}.reactive-md-editor .editor-input{min-width:0;padding:var(--space-3) var(--space-4);color:var(--code-ink);caret-color:var(--blue);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;resize:none;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;background:0 0;border:0;outline:none;flex:auto;overflow:auto}.reactive-md-editor .editor-mirror{visibility:hidden;pointer-events:none;padding:var(--space-3) var(--space-4);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;position:absolute;top:0;left:0}.reactive-md-editor .editor-input::placeholder{color:color-mix(in srgb, var(--code-ink) 40%, var(--code-bg))}.reactive-md-editor .editor-input:disabled{opacity:.72;cursor:not-allowed}@media (width<=620px){.reactive-md-editor .editor-gutter{font-size:var(--text-xs);flex-basis:40px}.reactive-md-editor .editor-input,.reactive-md-editor .editor-mirror{padding:var(--space-3);font-size:var(--text-xs)}}
|
|
1
|
+
.reactive-md-editor .editor-toolbar{--editor-toolbar-bg:var(--surface-subtle);--editor-toolbar-bg-deep:var(--surface);--editor-toolbar-border:var(--line);--editor-toolbar-line:var(--line-strong);--editor-toolbar-ink:var(--ink-soft);--editor-toolbar-ink-strong:var(--ink);--editor-toolbar-muted:var(--ink-muted);--editor-toolbar-hover:var(--surface-hover);--editor-toolbar-focus:var(--focus);--editor-toolbar-accent:var(--teal);z-index:20;width:100%;color:var(--editor-toolbar-ink);background:var(--editor-toolbar-bg-deep);background-image:linear-gradient(180deg, var(--editor-toolbar-bg), var(--editor-toolbar-bg-deep));border:0;border-bottom:1px solid var(--editor-toolbar-border);border-radius:calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;box-shadow:none;font-family:var(--font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);flex-wrap:wrap;align-items:center;gap:2px;margin:0;padding:6px 8px;line-height:1;display:flex;position:relative}.reactive-md-editor .editor-toolbar,.reactive-md-editor .editor-toolbar *,.reactive-md-editor .editor-toolbar :before,.reactive-md-editor .editor-toolbar :after{box-sizing:border-box}.reactive-md-editor .editor-toolbar-slot{flex:none;align-items:center;display:inline-flex;position:relative}.reactive-md-editor .editor-toolbar-slot-native{margin-left:4px}.reactive-md-editor .editor-toolbar-mobile-only{display:none}.reactive-md-editor .editor-toolbar-button{appearance:none;width:30px;height:30px;color:var(--editor-toolbar-ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:2px;padding:0;transition:background-color .15s,color .15s,transform .1s,opacity .15s;display:inline-flex;position:relative}.reactive-md-editor .editor-toolbar-button:active:not(:disabled){background:var(--surface-active);transform:translateY(1px)scale(.97)}.reactive-md-editor .editor-toolbar-button[aria-expanded=true]{color:var(--editor-toolbar-ink-strong);background:var(--surface-active)}.reactive-md-editor .editor-toolbar-button.is-active{color:var(--focus);background:color-mix(in srgb, var(--focus) 12%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--focus) 24%, transparent)}.reactive-md-editor .editor-toolbar-button:disabled{opacity:.34;cursor:not-allowed}.reactive-md-editor .editor-toolbar-icon{flex:none;width:18px;height:18px;display:block}.reactive-md-editor .editor-toolbar-glyph{width:18px;height:18px;font-family:var(--font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);justify-content:center;align-items:center;font-size:14px;font-weight:650;line-height:1;display:inline-flex}.reactive-md-editor .editor-toolbar-glyph.is-bold{letter-spacing:-.03em;font-size:15px;font-weight:850}.reactive-md-editor .editor-toolbar-glyph.is-italic{padding-right:1px;font-family:Georgia,Times New Roman,serif;font-size:16px;font-style:italic;font-weight:700}.reactive-md-editor .editor-toolbar-heading-trigger{gap:4px;width:auto;min-width:76px;padding:0 8px}.reactive-md-editor .editor-toolbar-heading-label{letter-spacing:.005em;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12.5px;font-weight:650;overflow:hidden}.reactive-md-editor .editor-toolbar-heading-label-compact{display:none}.reactive-md-editor .editor-toolbar-list-trigger{gap:0;width:auto;padding:0 4px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:4px;width:auto;padding:0 7px 0 6px}.reactive-md-editor .editor-toolbar-insert-label{letter-spacing:.005em;white-space:nowrap;font-size:12px;font-weight:600}.reactive-md-editor .editor-toolbar-chevron{opacity:.55;width:9px;height:9px;margin-left:-1px;transition:opacity .15s}.reactive-md-editor .editor-toolbar-button:hover .editor-toolbar-chevron,.reactive-md-editor .editor-toolbar-button[aria-expanded=true] .editor-toolbar-chevron{opacity:.95}.reactive-md-editor .editor-toolbar-components-trigger{border:1px solid color-mix(in srgb, var(--focus) 26%, transparent);background:linear-gradient(135deg, color-mix(in srgb, var(--focus) 12%, transparent), color-mix(in srgb, var(--teal) 8%, transparent));width:auto;min-width:94px;color:var(--focus);letter-spacing:.01em;border-radius:999px;gap:5px;padding:0 10px 0 8px;font-size:12px;font-weight:650}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:16px;height:16px;color:var(--editor-toolbar-accent)}.reactive-md-editor .editor-toolbar-components-label{white-space:nowrap}.reactive-md-editor .editor-toolbar-components-label-compact{display:none}.reactive-md-editor .editor-toolbar-components-trigger[aria-expanded=true]{border-color:color-mix(in srgb, var(--teal) 48%, transparent);background:linear-gradient(135deg, color-mix(in srgb, var(--focus) 20%, transparent), color-mix(in srgb, var(--teal) 14%, transparent));color:var(--ink)}.reactive-md-editor .editor-toolbar-history{align-items:center;gap:1px;margin-left:auto;display:flex}@container editor-frame (width<=500px){.reactive-md-editor .editor-toolbar{gap:1px}.reactive-md-editor .editor-toolbar-heading-trigger{padding-inline:5px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:2px;padding-inline:4px}.reactive-md-editor .editor-toolbar-components-trigger{gap:3px;padding-inline:5px}.reactive-md-editor .editor-toolbar-history>.editor-toolbar-desktop-only{display:none}.reactive-md-editor .editor-toolbar-slot.editor-toolbar-mobile-only{display:inline-flex}.reactive-md-editor .editor-toolbar-more-menu .editor-toolbar-more-link{display:none}}@media (hover:hover) and (pointer:fine){.reactive-md-editor .editor-toolbar-button[data-tooltip]:after{content:attr(data-tooltip);z-index:90;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 20px -10px color-mix(in srgb, var(--ink) 22%, transparent);color:var(--ink);font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);letter-spacing:0;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;border-radius:6px;padding:4px 7px;font-size:11.5px;font-weight:500;line-height:1.4;transition:opacity .12s,transform .12s,visibility .12s;position:absolute;top:calc(100% + 7px);left:50%;transform:translate(-50%,-2px)}.reactive-md-editor .editor-toolbar-button[data-tooltip]:hover:after,.reactive-md-editor .editor-toolbar-button[data-tooltip]:focus-visible:after{opacity:1;visibility:visible;transform:translate(-50%)}.reactive-md-editor .editor-toolbar-button[aria-expanded=true]:after,.reactive-md-editor .editor-toolbar.is-menu-open .editor-toolbar-button[data-tooltip]:after{display:none}.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:after{left:auto;right:0;transform:translateY(-2px)}.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:hover:after,.reactive-md-editor .editor-toolbar-history .editor-toolbar-button[data-tooltip]:focus-visible:after{transform:translateY(0)}}.reactive-md-editor .editor-toolbar-popover{z-index:50;color:var(--ink);background:var(--surface);border:1px solid var(--line);box-shadow:0 24px 50px -20px color-mix(in srgb, var(--ink) 22%, transparent), 0 8px 22px -12px color-mix(in srgb, var(--ink) 12%, transparent), inset 0 1px 0 #ffffff0d;transform-origin:0 0;border-radius:12px;animation:.13s ease-out editor-toolbar-pop-in;position:absolute;top:calc(100% + 6px);left:0}.reactive-md-editor .editor-toolbar-heading-menu{width:min(204px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-list-menu{width:min(220px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-insert-menu{width:min(228px,100vw - 24px);padding:6px}.reactive-md-editor .editor-toolbar-more-menu{transform-origin:100% 0;width:min(188px,100vw - 24px);padding:6px;left:auto;right:0}.reactive-md-editor .editor-toolbar-menu-item{appearance:none;width:100%;min-height:32px;color:var(--ink-soft);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:9px;padding:6px 9px;font-size:12.5px;transition:background-color .12s,color .12s;display:flex}.reactive-md-editor .editor-toolbar-menu-item:disabled{opacity:.36;cursor:not-allowed}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true]{color:var(--ink);background:color-mix(in srgb, var(--focus) 12%, transparent)}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true]:after{content:"✓";color:var(--focus);margin-left:auto;font-size:12px;font-weight:700}.reactive-md-editor .editor-toolbar-menu-icon{width:16px;height:16px;color:var(--ink-muted)}.reactive-md-editor .editor-toolbar-menu-item[aria-checked=true] .editor-toolbar-menu-icon,.reactive-md-editor .editor-toolbar-menu-item:hover:not(:disabled) .editor-toolbar-menu-icon{color:var(--focus)}.reactive-md-editor .editor-toolbar-menu-divider{background:var(--surface-hover);height:1px;margin:4px 6px}.reactive-md-editor .editor-toolbar-heading-item{gap:9px;padding:5px 8px}.reactive-md-editor .editor-toolbar-list-item,.reactive-md-editor .editor-toolbar-insert-item,.reactive-md-editor .editor-toolbar-more-item{gap:9px}.reactive-md-editor .editor-toolbar-heading-sample{color:var(--ink-muted);flex:0 0 26px;justify-content:center;align-items:center;font-family:Georgia,Times New Roman,serif;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.reactive-md-editor .editor-toolbar-heading-sample.is-level-0{font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);letter-spacing:.06em;font-size:10px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-1{color:var(--ink);font-size:15px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-2{color:var(--ink);font-size:14px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-3{color:var(--ink-soft);font-size:13px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-4{color:var(--ink-soft);font-size:12px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-5{color:var(--ink-muted);font-size:11.5px}.reactive-md-editor .editor-toolbar-heading-sample.is-level-6{color:var(--ink-muted);font-size:11px}.reactive-md-editor .editor-toolbar-emoji-menu{width:min(300px,100vw - 24px);padding:8px}.reactive-md-editor .editor-toolbar-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;display:grid}.reactive-md-editor .editor-toolbar-emoji{appearance:none;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;width:100%;height:30px;padding:0;font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:17px;line-height:1;transition:background-color .12s,transform .1s;display:inline-flex}.reactive-md-editor .editor-toolbar-emoji:active{transform:scale(.92)}.reactive-md-editor .editor-toolbar-native-menu{transform-origin:100% 0;flex-direction:column;width:min(364px,100vw - 24px);max-height:min(430px,72vh);padding:8px;display:flex;left:auto;right:0;overflow:hidden}.reactive-md-editor .editor-toolbar-native-head{flex:none;justify-content:space-between;align-items:center;gap:8px;padding:2px 2px 8px;display:flex}.reactive-md-editor .editor-toolbar-native-title{color:var(--ink);letter-spacing:.01em;font-size:13px;font-weight:700}.reactive-md-editor .editor-toolbar-close{appearance:none;width:28px;height:28px;color:var(--ink-muted);cursor:pointer;background:0 0;border:0;border-radius:7px;flex:none;justify-content:center;align-items:center;padding:0;transition:background-color .12s,color .12s;display:inline-flex}.reactive-md-editor .editor-toolbar-close .editor-toolbar-icon{width:14px;height:14px}.reactive-md-editor .editor-toolbar-search{background:var(--surface-subtle);border:1px solid var(--line);border-radius:8px;flex:none;align-items:center;gap:7px;margin-bottom:6px;padding:6px 9px;transition:background-color .15s,border-color .15s,box-shadow .15s;display:flex}.reactive-md-editor .editor-toolbar-search:focus-within{background:var(--surface-active);border-color:var(--focus);box-shadow:0 0 0 2px color-mix(in srgb, var(--focus) 18%, transparent)}.reactive-md-editor .editor-toolbar-search-icon{width:15px;height:15px;color:var(--ink-muted)}.reactive-md-editor .editor-toolbar-search-input{appearance:none;width:100%;min-width:0;color:var(--ink);font:inherit;background:0 0;border:0;outline:none;flex:auto;margin:0;padding:0;font-size:12.5px;line-height:1.4}.reactive-md-editor .editor-toolbar-search-input::placeholder{color:var(--ink-muted)}.reactive-md-editor .editor-toolbar-search-input::-webkit-search-decoration{appearance:none}.reactive-md-editor .editor-toolbar-search-input::-webkit-search-cancel-button{appearance:none}.reactive-md-editor .editor-toolbar-native-scroll{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;flex:auto;min-height:0;max-height:300px;padding-right:3px;overflow-y:auto}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar{width:6px}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-track{background:0 0}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:999px}.reactive-md-editor .editor-toolbar-native-scroll::-webkit-scrollbar-thumb:hover{background:var(--ink-muted)}.reactive-md-editor .editor-toolbar-native-group{padding:2px 0 4px}.reactive-md-editor .editor-toolbar-native-group+.editor-toolbar-native-group{border-top:1px solid var(--line);margin-top:3px;padding-top:6px}.reactive-md-editor .editor-toolbar-native-group-title{color:var(--ink-muted);letter-spacing:.09em;text-transform:uppercase;margin:2px 8px 5px;font-size:11px;font-weight:700}.reactive-md-editor .editor-toolbar-native-item{appearance:none;width:100%;min-height:42px;color:var(--ink-soft);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:7px 8px;transition:background-color .12s,color .12s;display:flex}.reactive-md-editor .editor-toolbar-native-copy{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.reactive-md-editor .editor-toolbar-native-label{color:var(--ink);align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.reactive-md-editor .editor-toolbar-native-description{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:1.5;display:block;overflow:hidden}.reactive-md-editor .editor-toolbar-native-badge{border:1px solid color-mix(in srgb, var(--teal) 28%, transparent);color:var(--editor-toolbar-accent);letter-spacing:.04em;border-radius:4px;flex:none;padding:0 4px;font-size:9px;font-weight:650;line-height:1.55}.reactive-md-editor .editor-toolbar-native-add{width:14px;height:14px;color:var(--ink-muted);opacity:.35;flex:none;transition:color .12s,opacity .12s}.reactive-md-editor .editor-toolbar-menu-empty{color:var(--editor-toolbar-muted);text-align:center;margin:16px 8px;font-size:12px;line-height:1.6}@media (hover:hover) and (pointer:fine){.reactive-md-editor .editor-toolbar-button:hover:not(:disabled){color:var(--editor-toolbar-ink-strong);background:var(--editor-toolbar-hover)}.reactive-md-editor .editor-toolbar-button.is-active:hover:not(:disabled){color:var(--ink);background:color-mix(in srgb, var(--focus) 18%, transparent)}.reactive-md-editor .editor-toolbar-components-trigger:hover:not(:disabled){color:var(--ink);background:linear-gradient(135deg, color-mix(in srgb, var(--focus) 18%, transparent), color-mix(in srgb, var(--teal) 14%, transparent));border-color:color-mix(in srgb, var(--focus) 50%, transparent)}.reactive-md-editor .editor-toolbar-emoji:hover{background:var(--line)}.reactive-md-editor .editor-toolbar-menu-item:hover:not(:disabled),.reactive-md-editor .editor-toolbar-native-item:hover{color:var(--ink);background:var(--surface-hover)}.reactive-md-editor .editor-toolbar-native-item:hover .editor-toolbar-native-add{color:var(--focus);opacity:1}.reactive-md-editor .editor-toolbar-close:hover{color:var(--ink);background:var(--surface-hover)}}.reactive-md-editor .editor-toolbar-button:focus-visible,.reactive-md-editor .editor-toolbar-emoji:focus-visible,.reactive-md-editor .editor-toolbar-menu-item:focus-visible,.reactive-md-editor .editor-toolbar-native-item:focus-visible,.reactive-md-editor .editor-toolbar-close:focus-visible{outline:2px solid var(--editor-toolbar-focus);outline-offset:2px}.reactive-md-editor .editor-toolbar-emoji:focus-visible{outline-offset:1px}.reactive-md-editor .editor-toolbar-menu-item:focus-visible,.reactive-md-editor .editor-toolbar-native-item:focus-visible{outline-offset:-2px}@media (width<=640px){.reactive-md-editor .editor-toolbar{gap:0;padding:4px 2px}.reactive-md-editor .editor-toolbar-desktop-only{display:none!important}.reactive-md-editor .editor-toolbar-slot.editor-toolbar-mobile-only{display:inline-flex}.reactive-md-editor .editor-toolbar-slot-native{margin-left:1px}.reactive-md-editor .editor-toolbar-heading-trigger{gap:2px;min-width:44px;padding:0 4px}.reactive-md-editor .editor-toolbar-heading-label{font-size:12px}.reactive-md-editor .editor-toolbar-heading-label-full{display:none}.reactive-md-editor .editor-toolbar-heading-label-compact{display:inline}.reactive-md-editor .editor-toolbar-more-menu .editor-toolbar-more-link{display:flex}.reactive-md-editor .editor-toolbar-list-trigger{padding:0 1px}.reactive-md-editor .editor-toolbar-insert-trigger{gap:2px;padding:0 3px}.reactive-md-editor .editor-toolbar-insert-trigger .editor-toolbar-chevron{display:none}.reactive-md-editor .editor-toolbar-insert-label{font-size:11.5px}.reactive-md-editor .editor-toolbar-components-trigger{gap:3px;min-width:0;padding:0 6px 0 5px;font-size:11px}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:14px;height:14px}.reactive-md-editor .editor-toolbar-components-label-full{display:none}.reactive-md-editor .editor-toolbar-components-label-compact{display:inline}.reactive-md-editor .editor-toolbar-history{gap:0}.reactive-md-editor .editor-toolbar-heading-menu{width:min(200px,100vw - 24px)}.reactive-md-editor .editor-toolbar-list-menu{width:min(208px,100vw - 48px)}.reactive-md-editor .editor-toolbar-insert-menu{transform-origin:100% 100%;width:min(216px,100vw - 24px);left:auto;right:0}.reactive-md-editor .editor-toolbar-more-menu{transform-origin:100% 100%;width:min(188px,100vw - 24px)}.reactive-md-editor .editor-toolbar-heading-menu,.reactive-md-editor .editor-toolbar-list-menu,.reactive-md-editor .editor-toolbar-insert-menu,.reactive-md-editor .editor-toolbar-more-menu{overscroll-behavior:contain;animation-name:editor-toolbar-pop-up;position:fixed;top:auto;bottom:calc(100% + 6px);overflow-y:auto}.reactive-md-editor .editor-toolbar-heading-menu,.reactive-md-editor .editor-toolbar-list-menu{transform-origin:0 100%}.reactive-md-editor .editor-toolbar-emoji-menu{z-index:80;overscroll-behavior:contain;transform-origin:bottom;width:auto;max-width:380px;margin:0 auto;position:fixed;inset:auto 8px 12px;overflow-x:auto}.reactive-md-editor .editor-toolbar-native-menu{z-index:80;transform-origin:bottom;width:auto;max-height:min(68vh,460px);position:fixed;inset:auto 10px 10px}.reactive-md-editor .editor-toolbar-native-scroll{max-height:none}}@media (width<=400px){.reactive-md-editor .editor-toolbar-heading-trigger{padding:0 2px}.reactive-md-editor .editor-toolbar-insert-trigger{padding:0 1px}.reactive-md-editor .editor-toolbar-components-trigger{gap:1px;padding:0 3px;font-size:10.5px}.reactive-md-editor .editor-toolbar-components-trigger .editor-toolbar-icon{width:13px;height:13px}}@media (pointer:coarse){.reactive-md-editor .editor-toolbar-button{border-radius:10px;width:44px;height:44px}.reactive-md-editor .editor-toolbar-heading-trigger,.reactive-md-editor .editor-toolbar-list-trigger,.reactive-md-editor .editor-toolbar-insert-trigger,.reactive-md-editor .editor-toolbar-components-trigger{width:auto;min-height:44px}.reactive-md-editor .editor-toolbar-heading-trigger,.reactive-md-editor .editor-toolbar-list-trigger{min-width:44px}.reactive-md-editor .editor-toolbar-menu-item,.reactive-md-editor .editor-toolbar-native-item,.reactive-md-editor .editor-toolbar-search{min-height:44px}.reactive-md-editor .editor-toolbar-emoji-menu{width:auto;padding:6px}.reactive-md-editor .editor-toolbar-emoji-grid{grid-template-columns:repeat(8,44px);justify-content:center;gap:1px}.reactive-md-editor .editor-toolbar-emoji,.reactive-md-editor .editor-toolbar-close{width:44px;height:44px}.reactive-md-editor .editor-toolbar-close .editor-toolbar-icon{width:18px;height:18px}.reactive-md-editor .editor-toolbar-native-item{padding:8px}}@media (prefers-reduced-motion:reduce){.reactive-md-editor .editor-toolbar-popover{animation:none}.reactive-md-editor .editor-toolbar-button,.reactive-md-editor .editor-toolbar-button[data-tooltip]:after,.reactive-md-editor .editor-toolbar-emoji,.reactive-md-editor .editor-toolbar-menu-item,.reactive-md-editor .editor-toolbar-native-item,.reactive-md-editor .editor-toolbar-native-add,.reactive-md-editor .editor-toolbar-close{transition-duration:.01ms}.reactive-md-editor .editor-toolbar-button:active:not(:disabled),.reactive-md-editor .editor-toolbar-emoji:active{transform:none}}@keyframes editor-toolbar-pop-in{0%{opacity:0;transform:translateY(-4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes editor-toolbar-pop-up{0%{opacity:0;transform:translateY(4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}.reactive-md-editor .editor-input-wrap{flex:auto;min-width:0;min-height:0;display:flex;position:relative}.reactive-md-editor .editor-input-wrap>.editor-input{color:#0000;-webkit-text-fill-color:transparent;width:100%;height:100%;caret-color:var(--focus);flex:none;position:absolute;inset:0}.reactive-md-editor .editor-input-wrap>.editor-input::selection{background:color-mix(in srgb, var(--blue) 30%, transparent);color:#0000;-webkit-text-fill-color:transparent}.reactive-md-editor .author-highlight{height:100%;padding:var(--space-3) var(--space-4);color:var(--code-ink);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0;right:0;overflow:hidden}.reactive-md-editor .author-highlight-content{will-change:transform;contain:layout style paint;transform:translate(0,0)}.reactive-md-editor .author-token-tag{color:var(--code-tag)}.reactive-md-editor .author-token-attribute{color:var(--code-attribute)}.reactive-md-editor .author-token-string{color:var(--code-string)}.reactive-md-editor .author-token-expression{color:var(--code-expression)}.reactive-md-editor .author-token-binding{color:var(--code-binding);text-decoration:underline;-webkit-text-decoration-color:color-mix(in srgb, var(--blue) 40%, transparent);text-decoration-color:color-mix(in srgb, var(--blue) 40%, transparent);text-underline-offset:2px}.reactive-md-editor .author-token-markdown{color:color-mix(in srgb, var(--code-ink) 78%, var(--code-bg))}.reactive-md-editor .author-token-math{color:var(--code-expression)}.reactive-md-editor .author-token-code,.reactive-md-editor .author-token-comment{color:var(--code-muted)}.reactive-md-editor .editor-shell.is-composing .author-highlight{visibility:hidden}.reactive-md-editor .editor-shell.is-composing .editor-input-wrap>.editor-input{color:var(--code-ink);-webkit-text-fill-color:currentColor}@media (width<=620px){.reactive-md-editor .author-highlight{padding:var(--space-3);font-size:var(--text-xs)}}.reactive-md-editor .source-authoring{margin-top:var(--space-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);position:relative;overflow:hidden}.reactive-md-editor .authoring-bar{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-2) var(--space-3);background:var(--surface-subtle);border-bottom:1px solid var(--line);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-title{color:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.04em;text-transform:uppercase}.reactive-md-editor .authoring-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-button{min-height:var(--control-height-sm);padding:0 var(--space-3);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);line-height:1}.reactive-md-editor .authoring-button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.reactive-md-editor .authoring-button:active:not(:disabled){background:var(--surface-active)}.reactive-md-editor .authoring-button:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-button:disabled{opacity:var(--disabled-opacity);cursor:not-allowed}.reactive-md-editor .authoring-button.authoring-primary{background:var(--blue);border-color:var(--blue);color:var(--surface)}.reactive-md-editor .authoring-button.authoring-primary:hover:not(:disabled){background:var(--blue-deep);border-color:var(--blue-deep)}.reactive-md-editor .authoring-body{gap:var(--space-3);padding:var(--space-3);display:grid}.reactive-md-editor .authoring-caret{align-items:center;gap:var(--space-1) var(--space-2);color:var(--ink);font-size:var(--text-sm);flex-wrap:wrap;margin:0;display:flex}.reactive-md-editor .authoring-caret-value{align-items:center;gap:var(--space-1) var(--space-3);flex-wrap:wrap;min-width:0;display:flex}.reactive-md-editor .authoring-caret-value>strong{font-family:var(--font-mono);font-size:var(--text-sm);overflow-wrap:anywhere}.reactive-md-editor .authoring-type{padding:1px var(--space-2);background:var(--neutral-soft);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-soft);font-size:var(--text-xs)}.reactive-md-editor .authoring-label{color:var(--ink-muted);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.02em}.reactive-md-editor .authoring-muted,.reactive-md-editor .authoring-empty{color:var(--ink-muted);font-size:var(--text-sm);margin:0}.reactive-md-editor .authoring-row{gap:var(--space-1);min-width:0;display:grid}.reactive-md-editor .authoring-binding-list{gap:var(--space-1);flex-wrap:wrap;max-height:108px;display:flex;overflow:auto}.reactive-md-editor .authoring-binding-chip{align-items:center;gap:var(--space-1);max-width:100%;min-height:var(--control-height-sm);padding:0 var(--space-2);overflow-wrap:anywhere;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--ink-soft);font-family:var(--font-mono);font-size:var(--text-xs);cursor:pointer;display:inline-flex}.reactive-md-editor .authoring-binding-chip:hover{background:var(--surface-hover);color:var(--ink)}.reactive-md-editor .authoring-binding-chip[aria-pressed=true]{background:color-mix(in srgb, var(--blue) 12%, var(--surface));border-color:var(--blue);color:var(--ink);box-shadow:inset 0 -2px 0 var(--blue)}.reactive-md-editor .authoring-binding-chip:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-binding-count{color:var(--ink-muted);font-size:10px}.reactive-md-editor .authoring-locations{gap:var(--space-1);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-location{align-items:center;gap:var(--space-1);min-height:var(--control-height-sm);padding:0 var(--space-2);background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius-control);color:var(--ink-soft);font-size:var(--text-xs);cursor:pointer;flex-wrap:wrap;display:inline-flex}.reactive-md-editor .authoring-location:hover{background:var(--surface-hover);border-color:var(--line-strong);color:var(--ink)}.reactive-md-editor .authoring-location:focus-visible{outline:var(--focus-outline);outline-offset:2px}.reactive-md-editor .authoring-location.is-declaration{border-left:2px solid var(--blue)}.reactive-md-editor .authoring-location.is-reference{border-left:2px solid var(--success)}.reactive-md-editor .authoring-location-position{color:var(--ink-muted);font-family:var(--font-mono);font-size:10px}.reactive-md-editor .authoring-rename{gap:var(--space-1);padding-top:var(--space-3);border-top:1px solid var(--line);display:grid}.reactive-md-editor .authoring-rename-row{gap:var(--space-2);flex-wrap:wrap;display:flex}.reactive-md-editor .authoring-rename-input{min-width:0;min-height:var(--control-height-sm);padding:0 var(--space-3);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-family:var(--font-mono);font-size:var(--text-sm);flex:180px}.reactive-md-editor .authoring-rename-input:focus-visible{outline:var(--focus-outline);outline-offset:1px}.reactive-md-editor .authoring-rename-input:disabled{opacity:var(--disabled-opacity)}.reactive-md-editor .authoring-error{color:var(--danger);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-hint{color:var(--ink-muted);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-status{color:var(--success);font-size:var(--text-xs);line-height:var(--leading-snug);margin:0}.reactive-md-editor .authoring-completion{border-bottom:1px solid var(--line);background:var(--surface)}.reactive-md-editor .authoring-completion-head{justify-content:space-between;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);color:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-semibold);display:flex}.reactive-md-editor .authoring-completion-count{color:var(--ink-muted);font-weight:var(--weight-regular)}.reactive-md-editor .authoring-completion-list{max-height:220px;padding:0 var(--space-2) var(--space-2);overflow:auto}.reactive-md-editor .authoring-completion-item{align-items:baseline;gap:2px var(--space-2);width:100%;min-height:var(--control-height-sm);padding:var(--space-1) var(--space-2);border-radius:var(--radius-control);color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:auto minmax(0,1fr);display:grid}.reactive-md-editor .authoring-completion-item:hover,.reactive-md-editor .authoring-completion-item.is-active{background:color-mix(in srgb, var(--blue) 10%, var(--surface));border-color:var(--blue-line)}.reactive-md-editor .authoring-completion-item:focus-visible{outline:var(--focus-outline);outline-offset:1px}.reactive-md-editor .authoring-kind{padding:1px var(--space-1);background:var(--neutral-soft);border-radius:var(--radius-control);color:var(--ink-muted);font-size:10px;font-weight:var(--weight-semibold);text-transform:uppercase;white-space:nowrap}.reactive-md-editor .authoring-kind.is-tag{color:var(--blue-deep)}.reactive-md-editor .authoring-kind.is-attribute{color:var(--teal)}.reactive-md-editor .authoring-kind.is-binding{color:var(--warning)}.reactive-md-editor .authoring-completion-label{min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reactive-md-editor .authoring-completion-detail{min-width:0;color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;grid-column:2;font-size:10px;overflow:hidden}@media (width<=640px){.reactive-md-editor .authoring-bar,.reactive-md-editor .authoring-body{padding:var(--space-2)}.reactive-md-editor .authoring-button,.reactive-md-editor .authoring-binding-chip,.reactive-md-editor .authoring-location,.reactive-md-editor .authoring-rename-input,.reactive-md-editor .authoring-completion-item{min-height:var(--control-height-lg)}.reactive-md-editor .authoring-rename-input{flex-basis:100%}.reactive-md-editor .authoring-completion-list{max-height:180px}}.reactive-md-editor .editor-status-bar{align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-4);color:var(--ink-muted);background:var(--surface-subtle);border-top:1px solid var(--line);border-radius:0 0 calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px);font-size:var(--text-sm);flex:none;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid}.reactive-md-editor .editor-status-count{font-variant-numeric:tabular-nums;white-space:nowrap}.reactive-md-editor .editor-status-hint{color:var(--ink-muted);font-size:var(--text-xs);text-align:center}.reactive-md-editor .editor-view-modes{justify-self:end;gap:var(--space-1);display:flex}.reactive-md-editor .editor-view-modes button{border-radius:var(--radius-pill);min-width:44px;min-height:44px;color:var(--ink-soft);font:inherit;white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;gap:6px;padding:0 14px;display:inline-flex}.reactive-md-editor .editor-view-modes button:hover{background:var(--surface-hover);color:var(--ink)}.reactive-md-editor .editor-view-modes button[aria-pressed=true]{background:var(--blue-soft);color:var(--focus)}.reactive-md-editor .editor-view-modes button:focus-visible{outline:var(--focus-outline);outline-offset:2px}@container editor-frame (width<=760px){.reactive-md-editor .editor-status-bar{gap:var(--space-2);padding:var(--space-2) var(--space-3);grid-template-columns:minmax(0,1fr) auto}.reactive-md-editor .editor-status-hint{display:none}.reactive-md-editor .editor-view-modes button{padding-inline:10px}}@container editor-frame (width<=600px){.reactive-md-editor .editor-view-modes button[data-editor-view-option=split]{display:none}.reactive-md-editor .editor-view-modes button{padding-inline:12px}}@media (prefers-reduced-motion:reduce){.reactive-md-editor .editor-view-modes button{transition:none}}.reactive-md-editor{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--surface:#fff;--surface-subtle:#f7f7f5;--surface-hover:color-mix(in srgb, var(--ink) 5%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 8%, var(--surface));--ink:#232323;--ink-soft:#4f4f4d;--ink-muted:#6f6f6c;--line:#e4e3df;--line-strong:#d0cfc9;--blue:#3f5f8f;--blue-deep:#33507a;--blue-soft:#eef1f6;--blue-line:#d8dfe9;--teal:#167875;--success:var(--teal);--warning:#8a5a10;--danger:#a2273a;--neutral-soft:#f1f0ed;--focus:var(--blue);--focus-outline:2px solid var(--focus);--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent);--code-bg:#fff;--code-bg-deep:#f4f5f7;--code-ink:#253247;--code-muted:#667085;--code-tag:#375d98;--code-attribute:#126c68;--code-string:#237346;--code-expression:#8a5a10;--code-binding:#6750a4;--text-xs:12.5px;--text-sm:14px;--text-md:16px;--leading-tight:1.3;--leading-snug:1.5;--leading-normal:1.6;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-control:6px;--radius-card:12px;--radius-pill:999px;--radius-md:var(--radius-card);--control-height-sm:32px;--control-height-lg:44px;--control-inset-x:19px;--disabled-opacity:.45;--motion-fast:.16s;--ease-standard:cubic-bezier(.22, .61, .36, 1);--font-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;--font-mono:"Cascadia Code", "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", monospace;min-width:0;color:var(--ink);font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--leading-normal);flex-direction:column;display:flex}.reactive-md-editor,.reactive-md-editor *,.reactive-md-editor :before,.reactive-md-editor :after{box-sizing:border-box}.reactive-md-editor button,.reactive-md-editor input,.reactive-md-editor textarea{font:inherit}.reactive-md-editor[data-editor-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1b1b1d;--surface-subtle:#202022;--surface-hover:color-mix(in srgb, var(--ink) 8%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 12%, var(--surface));--ink:#ecebe7;--ink-soft:#c3c1bb;--ink-muted:#9b9993;--line:#343436;--line-strong:#4d4d4f;--blue:#47679f;--blue-deep:#5574ad;--blue-soft:#232a35;--blue-line:#37445a;--teal:#68ccc2;--success:var(--teal);--warning:#f0b84f;--danger:#ffa0ae;--neutral-soft:#26262a;--code-bg:#0f172a;--code-bg-deep:#0b1220;--code-ink:#dce6ff;--code-muted:#94a3b8;--code-tag:#a5bcff;--code-attribute:#79d5cb;--code-string:#a3d49c;--code-expression:#f0c779;--code-binding:#c5aff5;--focus:#a9bce3;--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent)}@media (prefers-color-scheme:dark){.reactive-md-editor[data-editor-theme=auto]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#1b1b1d;--surface-subtle:#202022;--surface-hover:color-mix(in srgb, var(--ink) 8%, var(--surface));--surface-active:color-mix(in srgb, var(--ink) 12%, var(--surface));--ink:#ecebe7;--ink-soft:#c3c1bb;--ink-muted:#9b9993;--line:#343436;--line-strong:#4d4d4f;--blue:#47679f;--blue-deep:#5574ad;--blue-soft:#232a35;--blue-line:#37445a;--teal:#68ccc2;--success:var(--teal);--warning:#f0b84f;--danger:#ffa0ae;--neutral-soft:#26262a;--code-bg:#0f172a;--code-bg-deep:#0b1220;--code-ink:#dce6ff;--code-muted:#94a3b8;--code-tag:#a5bcff;--code-attribute:#79d5cb;--code-string:#a3d49c;--code-expression:#f0c779;--code-binding:#c5aff5;--focus:#a9bce3;--focus-ring:0 0 0 2px color-mix(in srgb, var(--focus) 28%, transparent)}}.reactive-md-editor .reactive-md-editor-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.reactive-md-editor .editor-frame{background:var(--code-bg);border:1px solid color-mix(in srgb, var(--code-ink) 12%, var(--code-bg));border-radius:var(--radius-card);min-width:0;height:560px;min-height:280px;transition:border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);flex-direction:column;display:flex;position:relative;overflow:visible;container:editor-frame/inline-size}.reactive-md-editor .editor-frame:focus-within{border-color:var(--focus);box-shadow:var(--focus-ring)}.reactive-md-editor .editor-shell{background:var(--code-bg);border:0;border-radius:0;flex:auto;height:auto;min-height:0;display:flex;position:relative;overflow:hidden}.reactive-md-editor .editor-workspace{flex:auto;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;display:grid;overflow:hidden}.reactive-md-editor .editor-workspace[data-view=split]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.reactive-md-editor .editor-workspace>[hidden],.reactive-md-editor .editor-frame[data-editor-view=preview]>.editor-toolbar{display:none}.reactive-md-editor .editor-preview{min-width:0;min-height:0;padding:var(--space-4);overscroll-behavior:contain;background:var(--surface);color:var(--ink);overflow:auto}.reactive-md-editor .editor-workspace[data-view=split]>.editor-preview{border-left:1px solid var(--line)}@container editor-frame (width<=600px){.reactive-md-editor .editor-workspace[data-view=split]{grid-template-columns:minmax(0,1fr)}.reactive-md-editor .editor-workspace[data-view=split]>.editor-preview{display:none}}.reactive-md-editor .editor-gutter{flex:0 0 var(--space-7);padding:var(--space-3) 0;background:var(--code-bg-deep);border-right:1px solid color-mix(in srgb, var(--code-ink) 10%, var(--code-bg-deep));color:var(--code-muted);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);text-align:right;-webkit-user-select:none;user-select:none;overflow:hidden}.reactive-md-editor .gutter-line{padding-right:var(--space-2);white-space:nowrap;border-left:2px solid #0000;display:block}.reactive-md-editor .gutter-line.is-active{background:color-mix(in srgb, var(--blue) 18%, transparent);border-left-color:var(--blue);color:var(--code-ink)}.reactive-md-editor .gutter-line.is-diagnostic{border-left-color:color-mix(in srgb, var(--danger) 80%, var(--code-ink));color:color-mix(in srgb, var(--danger) 58%, var(--code-ink))}.reactive-md-editor .editor-input{min-width:0;padding:var(--space-3) var(--space-4);color:var(--code-ink);caret-color:var(--focus);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;resize:none;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;background:0 0;border:0;outline:none;flex:auto;overflow:auto}.reactive-md-editor .editor-mirror{visibility:hidden;pointer-events:none;padding:var(--space-3) var(--space-4);font-family:var(--font-mono);font-size:var(--text-sm);line-height:var(--leading-normal);tab-size:2;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;position:absolute;top:0;left:0}.reactive-md-editor .editor-input::placeholder{color:var(--code-muted)}.reactive-md-editor .editor-input:disabled{opacity:.72;cursor:not-allowed}@media (width<=620px){.reactive-md-editor .editor-gutter{font-size:var(--text-xs);flex-basis:40px}.reactive-md-editor .editor-input,.reactive-md-editor .editor-mirror{padding:var(--space-3);font-size:var(--text-xs)}}
|
|
2
2
|
/*$vite$:1*/
|