@webc.site/math 0.1.19 → 0.1.20
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,7 +135,7 @@ Or import the math font `m` only:
|
|
|
135
135
|
|
|
136
136
|
Set the font family for the `math` tag in your global CSS stylesheet.
|
|
137
137
|
|
|
138
|
-
##### Option A: Using
|
|
138
|
+
##### Option A: Using Online Fonts (Recommended for best visual quality)
|
|
139
139
|
|
|
140
140
|
For projects importing the `18s` font assets (which contains the optimized math font `m` and Source Han Sans `t`):
|
|
141
141
|
|
|
@@ -165,7 +165,7 @@ Install the `18s` font package via npm, and import it at your project entry usin
|
|
|
165
165
|
npm install 18s
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
Import font styles in your project entry file
|
|
168
|
+
Import font styles in your project entry file:
|
|
169
169
|
|
|
170
170
|
##### Method A: Import in JS/TS Entry File
|
|
171
171
|
|
|
@@ -577,7 +577,7 @@ console.log(html);
|
|
|
577
577
|
|
|
578
578
|
在全局 CSS 样式表中,为 `math` 标签指定数学字体。
|
|
579
579
|
|
|
580
|
-
##### 方案 A
|
|
580
|
+
##### 方案 A:使用在线字体(推荐,效果最完美)
|
|
581
581
|
|
|
582
582
|
引入 `18s` 提供的字体包(含切片优化思源黑体 `t` 与数学字体 `m`):
|
|
583
583
|
|
|
@@ -607,7 +607,7 @@ math {
|
|
|
607
607
|
npm install 18s
|
|
608
608
|
```
|
|
609
609
|
|
|
610
|
-
|
|
610
|
+
在项目入口文件中引入字体样式:
|
|
611
611
|
|
|
612
612
|
##### 方式 A:在 JS/TS 入口中引入
|
|
613
613
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@webc.site/math","version":"0.1.
|
|
1
|
+
{"name":"@webc.site/math","version":"0.1.20","description":"The world's smallest and fastest web Markdown formula renderer / 全球最小最快的网页Markdown公式渲染器","keywords":["markdown","math","mathml","render","tex"],"homepage":"https://math.webc.site","license":"MulanPSL-2.0","author":"i18n.site@gmail.com","repository":{"type":"git","url":"git+https://github.com/webc-site/math.git"},"type":"module","exports":{".":{"types":"./mathml.d.ts","default":"./mathml.js"},"./md.js":{"types":"./md.d.ts","default":"./md.js"},"./*":"./*"},"dependencies":{}}
|