Comparing version
@@ -61,3 +61,3 @@ (function(global, factory) { | ||
__publicField(this, "version"); | ||
this.version = "6.1.0"; | ||
this.version = "6.1.1"; | ||
} | ||
@@ -64,0 +64,0 @@ spacingText(text) { |
@@ -57,3 +57,3 @@ var __defProp = Object.defineProperty; | ||
__publicField(this, "version"); | ||
this.version = "6.1.0"; | ||
this.version = "6.1.1"; | ||
} | ||
@@ -60,0 +60,0 @@ spacingText(text) { |
# History | ||
## v6.1.1 / 2025-06-30 | ||
- 修正 Node.js imports | ||
## v6.1.0 / 2025-06-30 | ||
@@ -4,0 +8,0 @@ |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"author": { | ||
@@ -17,0 +17,0 @@ "name": "Vinta Chen", |
@@ -58,2 +58,4 @@ # 為什麼你們就是不能加個空格呢? | ||
#### UMD (Script Tag) | ||
```html | ||
@@ -76,7 +78,20 @@ <script src="pangu/dist/browser/pangu.umd.js"></script> | ||
`pangu.js` is also available on some popular npm CDNs: | ||
Also on: | ||
- https://cdn.jsdelivr.net/npm/pangu@6.1.1/dist/browser/pangu.umd.js | ||
- https://unpkg.com/pangu@6.1.1/dist/browser/pangu.umd.js | ||
#### ES Modules | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/pangu@6.1.0/dist/browser/pangu.umd.js"></script> | ||
<script src="https://unpkg.com/pangu@6.1.0/dist/browser/pangu.umd.js"></script> | ||
<script type="module"> | ||
import { pangu } from 'pangu/browser'; | ||
const text = pangu.spacingText('當你凝視著bug,bug也凝視著你'); | ||
// text = '當你凝視著 bug,bug 也凝視著你' | ||
pangu.spacingElementById('main'); | ||
pangu.spacingElementByClassName('comment'); | ||
pangu.spacingElementByTagName('p'); | ||
</script> | ||
``` | ||
@@ -97,3 +112,3 @@ | ||
You **SHOULD NOT** use `pangu.js` directly to spacing Markdown documents, this library is specially designed for HTML webpages and plain texts without any markup language. See [issue #127](https://github.com/vinta/pangu.js/issues/127). | ||
You **SHOULD NOT** use `pangu.js` to spacing Markdown documents, this library is specially designed for HTML webpages and plain texts without any markup language. See [issue #127](https://github.com/vinta/pangu.js/issues/127). | ||
@@ -106,4 +121,3 @@ ### CLI | ||
$ pangu "盤古新聞網:工程師會議中默不作聲,PM恐成最大贏家" | ||
盤古新聞網:工程師會議中默不作聲,PM 恐成最大贏家 | ||
$ pangu --check "盤古新聞網:工程師會議中默不作聲,PM 恐成最大贏家" | ||
@@ -110,0 +124,0 @@ $ pangu --help |
@@ -128,3 +128,3 @@ // CJK is short for Chinese, Japanese, and Korean: | ||
constructor() { | ||
this.version = '6.1.0'; | ||
this.version = '6.1.1'; | ||
} | ||
@@ -131,0 +131,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
342778
11.79%35
6.06%3301
8.62%157
9.79%