punctilio 3.1.2 → 3.1.3
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 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Pretty good at making your text pretty. The most feature-complete and reliable E
|
|
|
11
11
|
```typescript
|
|
12
12
|
import { transform } from 'punctilio'
|
|
13
13
|
|
|
14
|
-
transform(
|
|
14
|
+
transform(`"It's a beautiful thing, the destruction of words..." -- 1984`)
|
|
15
15
|
// → “It’s a beautiful thing, the destruction of words…”—1984
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -148,7 +148,7 @@ transform(text, {
|
|
|
148
148
|
- Spaced en-dashes between words (word – word)
|
|
149
149
|
- The `german` style uses low-9 quotes: „double” (U+201E/U+201C) and ‚single' (U+201A/U+2018).
|
|
150
150
|
- Punctuation outside quotes
|
|
151
|
-
- The `french` style uses guillemets with non-breaking space padding:
|
|
151
|
+
- The `french` style uses guillemets with non-breaking space padding: « Bonjour ».
|
|
152
152
|
- Single quotes remain as curly quotes
|
|
153
153
|
- Punctuation outside quotes
|
|
154
154
|
- Setting either style to `none` skips the entire transform category: `punctuationStyle: 'none'` preserves straight quotes, apostrophes, and prime marks; `dashStyle: 'none'` preserves all hyphens, number ranges, date ranges, and minus signs.
|