punctilio 5.0.1 → 5.0.2
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 +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,9 +23,7 @@ npm install punctilio
|
|
|
23
23
|
|
|
24
24
|
## Why punctilio?
|
|
25
25
|
|
|
26
|
-
As far as I can tell, `punctilio` is the most reliable and feature-complete. I built `punctilio` for [my website](https://turntrout.com/design). I wrote
|
|
27
|
-
|
|
28
|
-
[^wrote]: While Claude is the number one contributor to this repository, that’s because Claude helped me port my existing code and added some features. The core regular expressions (e.g. dashes, quotes, multiplication signs) are human-written and were quite delicate. Those numerous commits don’t show in this repo’s history.
|
|
26
|
+
As far as I can tell, `punctilio` is the most reliable and feature-complete. I built `punctilio` for [my website](https://turntrout.com/design). I wrote and sharpened the core regexes sporadically over several months, exhaustively testing edge cases. Eventually, I decided to spin off the functionality into its own package.
|
|
29
27
|
|
|
30
28
|
I tested `punctilio` against [`smartypants`](https://www.npmjs.com/package/smartypants) 0.2.2, [`tipograph`](https://www.npmjs.com/package/tipograph) 0.7.4, [`smartquotes`](https://www.npmjs.com/package/smartquotes) 2.3.2, [`typograf`](https://www.npmjs.com/package/typograf) 7.7.0, and [`retext-smartypants`](https://www.npmjs.com/package/retext-smartypants) 6.2.0.[^python] These other packages have spotty feature coverage and inconsistent impact on text. For example, `smartypants` mishandles quotes after em dashes (though quite hard to see in GitHub’s font) and lacks multiplication sign support.
|
|
31
29
|
|
|
@@ -232,7 +230,7 @@ A `.pre-commit-hooks.yaml` ships in the package, so [pre-commit](https://pre-com
|
|
|
232
230
|
# .pre-commit-config.yaml
|
|
233
231
|
repos:
|
|
234
232
|
- repo: https://github.com/alexander-turner/punctilio
|
|
235
|
-
rev: v5.0.
|
|
233
|
+
rev: v5.0.1
|
|
236
234
|
hooks:
|
|
237
235
|
- id: punctilio # rewrites *.md / *.html in place
|
|
238
236
|
- id: punctilio-check # or: fail without writing (CI-friendly)
|