hongdown 0.4.0-dev.156 → 0.4.0-dev.159

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.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -97,6 +97,9 @@ hongdown - < input.md
97
97
 
98
98
  # Custom line width
99
99
  hongdown --line-width 100 input.md
100
+
101
+ # Disable word wrapping entirely
102
+ hongdown --no-line-width input.md
100
103
  ~~~~
101
104
 
102
105
  ### HTML comment directives
@@ -209,7 +212,7 @@ exclude = [] # Files to skip (default: none)
209
212
  git_aware = true # Respect .gitignore and skip .git directory (default: true)
210
213
 
211
214
  # Formatting options
212
- line_width = 80 # Maximum line width (min: 8, default: 80)
215
+ line_width = 80 # Maximum line width (min: 8, default: 80); set to false to disable wrapping
213
216
 
214
217
  [heading]
215
218
  setext_h1 = true # Use === underline for h1 (default: true)
@@ -217,6 +220,8 @@ setext_h2 = true # Use --- underline for h2 (default: true)
217
220
  sentence_case = false # Convert headings to sentence case (default: false)
218
221
  proper_nouns = [] # Additional proper nouns to preserve (default: [])
219
222
  common_nouns = [] # Exclude built-in proper nouns (default: [])
223
+ anchor_align = 0 # Spaces before anchor {#id}: positive = exact count,
224
+ # 0/negative = right-align to line_width+anchor_align (default: 0)
220
225
 
221
226
  [unordered_list]
222
227
  unordered_marker = "-" # "-", "*", or "+" (default: "-")
@@ -279,6 +284,9 @@ CLI options override configuration file settings:
279
284
  # Use config file but override line width
280
285
  hongdown --line-width 100 input.md
281
286
 
287
+ # Disable word wrapping (overrides config file)
288
+ hongdown --no-line-width input.md
289
+
282
290
  # Use specific config file
283
291
  hongdown --config /path/to/.hongdown.toml input.md
284
292
  ~~~~
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hongdown",
3
- "version": "0.4.0-dev.156+6e895bfa",
3
+ "version": "0.4.0-dev.159+5f49a6b2",
4
4
  "type": "module",
5
5
  "description": "A Markdown formatter that enforces Hong Minhee's Markdown style conventions",
6
6
  "license": "GPL-3.0-or-later",
@@ -27,11 +27,11 @@
27
27
  "node": "\u003e=18"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@hongdown/darwin-arm64": "0.4.0-dev.156+6e895bfa",
31
- "@hongdown/darwin-x64": "0.4.0-dev.156+6e895bfa",
32
- "@hongdown/linux-arm64": "0.4.0-dev.156+6e895bfa",
33
- "@hongdown/linux-x64": "0.4.0-dev.156+6e895bfa",
34
- "@hongdown/win32-arm64": "0.4.0-dev.156+6e895bfa",
35
- "@hongdown/win32-x64": "0.4.0-dev.156+6e895bfa"
30
+ "@hongdown/darwin-arm64": "0.4.0-dev.159+5f49a6b2",
31
+ "@hongdown/darwin-x64": "0.4.0-dev.159+5f49a6b2",
32
+ "@hongdown/linux-arm64": "0.4.0-dev.159+5f49a6b2",
33
+ "@hongdown/linux-x64": "0.4.0-dev.159+5f49a6b2",
34
+ "@hongdown/win32-arm64": "0.4.0-dev.159+5f49a6b2",
35
+ "@hongdown/win32-x64": "0.4.0-dev.159+5f49a6b2"
36
36
  }
37
37
  }