docs: update README

This commit is contained in:
Sivan 2020-03-15 23:30:04 +08:00 committed by GitHub
commit 344bf37b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@
```
<link rel="stylesheet" href="//unpkg.com/heti/umd/heti.min.css">
```
1. 在要作用的容器元素上增加 `class="heti"` 的类名即可:
1. 在要作用的容器元素上增加 `class="heti"` 的类名即可:
```
<article class="entry heti">
<h1>我的世界观</h1>
@ -34,6 +34,14 @@
……
</article>
```
1. 使用增强脚本(可选):
```
<script src="//unpkg.com/heti/umd/heti-addon.min.js"></script>
<script>
const heti = new Heti('.heti');
heti.autoSpacing(); // 自动进行中西文混排美化和标点挤压
</script>
```
## WIP