markstream-vue 0.0.3-beta.4 → 0.0.3-beta.6
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/README.md +5 -1
- package/README.zh-CN.md +5 -1
- package/dist/{exports-DhNgUzYL.js → exports-CVYl7bes.js} +847 -839
- package/dist/{exports-1obt4rfJ.cjs → exports-ISf5W5H7.cjs} +7 -7
- package/dist/exports.js +1 -1
- package/dist/{index-Cy9ounEH.js → index-B90_xyRN.js} +1 -1
- package/dist/{index-BS4IAchB.cjs → index-BOwgCLNK.cjs} +1 -1
- package/dist/{index-BDPiDbZr.js → index-Bg9riGZT.js} +1 -1
- package/dist/{index-KPngPBen.cjs → index-Bjfg9_i9.cjs} +1 -1
- package/dist/{index-DD2YWdWI.cjs → index-BqQOMeNc.cjs} +1 -1
- package/dist/{index-gpZy9BH3.js → index-CpUcwcBM.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/tailwind.ts +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[](./SUPPORT.md)
|
|
16
16
|
[](./SECURITY.md)
|
|
17
17
|
[](https://github.com/Simon-He95/markstream-vue/actions/workflows/ci.yml)
|
|
18
|
-
[](./
|
|
18
|
+
[](./license)
|
|
19
19
|
|
|
20
20
|
## Contents
|
|
21
21
|
|
|
@@ -89,6 +89,10 @@ createApp({
|
|
|
89
89
|
|
|
90
90
|
Import `markstream-vue/index.css` after your reset (e.g., Tailwind `@layer components`) so renderer styles win over utility classes. Install optional peers such as `stream-monaco`, `shiki`, `mermaid`, and `katex` only when you need Monaco code blocks, Shiki highlighting, diagrams, or math.
|
|
91
91
|
|
|
92
|
+
Renderer CSS is scoped under an internal `.markstream-vue` container to minimize global style conflicts. If you render exported node components outside of `MarkdownRender`, wrap them in an element with class `markstream-vue`.
|
|
93
|
+
|
|
94
|
+
For dark theme variables, either add a `.dark` class on an ancestor, or pass `:is-dark="true"` to `MarkdownRender` to scope dark mode to the renderer.
|
|
95
|
+
|
|
92
96
|
Enable heavy peers only when needed:
|
|
93
97
|
|
|
94
98
|
```ts
|
package/README.zh-CN.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
[](./SUPPORT.md)
|
|
15
15
|
[](./SECURITY.md)
|
|
16
16
|
[](https://github.com/Simon-He95/markstream-vue/actions/workflows/ci.yml)
|
|
17
|
-
[](./
|
|
17
|
+
[](./license)
|
|
18
18
|
|
|
19
19
|
## 目录
|
|
20
20
|
|
|
@@ -88,6 +88,10 @@ createApp({
|
|
|
88
88
|
|
|
89
89
|
确保在 CSS reset(如 `@tailwind base` 或 `@unocss/reset`)之后导入 `markstream-vue/index.css`,最好放在 `@layer components` 中以避免 Tailwind/UnoCSS 覆盖组件样式。根据需求再按需安装可选 peer 依赖:`stream-monaco`(Monaco 代码块)、`shiki`(Shiki 高亮)、`mermaid`(Mermaid 图表)、`katex`(数学公式)。
|
|
90
90
|
|
|
91
|
+
渲染器的 CSS 会作用于内部 `.markstream-vue` 容器下,以尽量降低对全局的影响;如果你脱离 `MarkdownRender` 单独使用导出的节点组件,请在外层包一层带 `markstream-vue` 类名的容器。
|
|
92
|
+
|
|
93
|
+
暗色变量可以通过给祖先节点加 `.dark`,或直接给 `MarkdownRender` 传入 `:is-dark="true"`(仅对渲染器生效)。
|
|
94
|
+
|
|
91
95
|
按需启用重型依赖:
|
|
92
96
|
|
|
93
97
|
```ts
|