Skip to content

Commit deff4b8

Browse files
vintaclaude
andcommitted
docs: update badges and fix arrow function style in examples
- Replace old badge URLs with shields.io for-the-badge style - Add Chrome Web Store version badge - Add parentheses around arrow function parameters in code examples Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9c1fd24 commit deff4b8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# 為什麼你們就是不能加個空格呢?
22

3-
[![](https://data.jsdelivr.com/v1/package/npm/pangu/badge)](https://www.jsdelivr.com/package/npm/pangu)
4-
[![](https://img.shields.io/npm/v/pangu.svg?style=flat-square)](https://www.npmjs.com/package/pangu)
5-
[![](https://img.shields.io/badge/made%20with-%e2%9d%a4-ff69b4.svg?style=flat-square)](https://vinta.ws/code/)
3+
[![jsDelivr Hits](https://img.shields.io/jsdelivr/npm/hm/pangu?style=for-the-badge)](https://www.jsdelivr.com/package/npm/pangu)
4+
[![npm Downloads](https://img.shields.io/npm/dm/pangu?style=for-the-badge&label=npm)](https://www.npmjs.com/package/pangu)
5+
[![npm Version](https://img.shields.io/npm/v/pangu?style=for-the-badge)](https://www.npmjs.com/package/pangu)
6+
[![Chrome Web Store Version](https://img.shields.io/chrome-web-store/v/paphcfdffjnbcgkokihcdjliihicmbpd?style=for-the-badge)](https://chrome.google.com/webstore/detail/paphcfdffjnbcgkokihcdjliihicmbpd)
67

78
如果你跟我一樣,每次看到網頁上的中文字和英文、數字、符號擠在一塊,就會坐立難安,忍不住想在它們之間加個空格。這個 Google Chrome 外掛正是你在網路世界走跳所需要的東西,它會自動替你在網頁中所有的中文字和半形的英文、數字、符號之間插入空白。
89

@@ -65,8 +66,8 @@ Learn more on [npm](https://www.npmjs.com/package/pangu).
6566
6667
// Process specific elements using spacingNode()
6768
pangu.spacingNode(document.getElementById('main'));
68-
document.querySelectorAll('.comment').forEach(el => pangu.spacingNode(el));
69-
document.querySelectorAll('p').forEach(el => pangu.spacingNode(el));
69+
document.querySelectorAll('.comment').forEach((el) => pangu.spacingNode(el));
70+
document.querySelectorAll('p').forEach((el) => pangu.spacingNode(el));
7071
7172
document.addEventListener('DOMContentLoaded', () => {
7273
// listen to any DOM change and automatically perform spacing via MutationObserver()
@@ -86,8 +87,8 @@ Learn more on [npm](https://www.npmjs.com/package/pangu).
8687
8788
// Process specific elements using spacingNode()
8889
pangu.spacingNode(document.getElementById('main'));
89-
document.querySelectorAll('.comment').forEach(el => pangu.spacingNode(el));
90-
document.querySelectorAll('p').forEach(el => pangu.spacingNode(el));
90+
document.querySelectorAll('.comment').forEach((el) => pangu.spacingNode(el));
91+
document.querySelectorAll('p').forEach((el) => pangu.spacingNode(el));
9192
</script>
9293
```
9394

0 commit comments

Comments
 (0)