hongdown 0.1.0-dev.8 → 0.1.0-dev.9

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 +22 -19
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -126,34 +126,37 @@ Hongdown looks for a `.hongdown.toml` file in the current directory and
126
126
  parent directories. You can also specify a configuration file explicitly
127
127
  with the `--config` option.
128
128
 
129
+ Below is an example configuration with all available options and their
130
+ default values:
131
+
129
132
  ~~~~ toml
130
133
  # File patterns (glob syntax)
131
- include = ["*.md", "docs/**/*.md"] # Files to format
132
- exclude = ["node_modules/**"] # Files to skip
134
+ include = [] # Files to format (default: none, specify on CLI)
135
+ exclude = [] # Files to skip (default: none)
133
136
 
134
137
  # Formatting options
135
- line_width = 80
138
+ line_width = 80 # Maximum line width (default: 80)
136
139
 
137
140
  [heading]
138
- setext_h1 = true # Use === underline for h1
139
- setext_h2 = true # Use --- underline for h2
141
+ setext_h1 = true # Use === underline for h1 (default: true)
142
+ setext_h2 = true # Use --- underline for h2 (default: true)
140
143
 
141
144
  [list]
142
- unordered_marker = "-" # "-", "*", or "+"
143
- leading_spaces = 1 # Spaces before marker
144
- trailing_spaces = 2 # Spaces after marker
145
- indent_width = 4 # Indentation for nested items
145
+ unordered_marker = "-" # "-", "*", or "+" (default: "-")
146
+ leading_spaces = 1 # Spaces before marker (default: 1)
147
+ trailing_spaces = 2 # Spaces after marker (default: 2)
148
+ indent_width = 4 # Indentation for nested items (default: 4)
146
149
 
147
150
  [ordered_list]
148
- odd_level_marker = "." # "1." at odd nesting levels
149
- even_level_marker = ")" # "1)" at even nesting levels
150
- pad = "start" # "start" or "end" for number alignment
151
- indent_width = 4 # Indentation for nested items
151
+ odd_level_marker = "." # "." or ")" at odd nesting levels (default: ".")
152
+ even_level_marker = ")" # "." or ")" at even nesting levels (default: ")")
153
+ pad = "start" # "start" or "end" for number alignment (default: "start")
154
+ indent_width = 4 # Indentation for nested items (default: 4)
152
155
 
153
156
  [code_block]
154
- fence_char = "~" # "~" or "`"
155
- min_fence_length = 4 # Minimum fence length
156
- space_after_fence = true # Space between fence and language
157
+ fence_char = "~" # "~" or "`" (default: "~")
158
+ min_fence_length = 4 # Minimum fence length (default: 4)
159
+ space_after_fence = true # Space between fence and language (default: true)
157
160
  ~~~~
158
161
 
159
162
  When `include` patterns are configured, you can run Hongdown without
@@ -207,7 +210,7 @@ Section
207
210
  ~~~~ markdown
208
211
  - First item
209
212
  - Second item
210
- - Nested item
213
+ - Nested item
211
214
  ~~~~
212
215
 
213
216
  ### Code blocks
@@ -246,9 +249,9 @@ See the [documentation] for more details.
246
249
  - Pipes are aligned accounting for East Asian wide characters
247
250
  - Minimum column width is maintained
248
251
 
249
- See [SPEC.md] for the complete style specification.
252
+ See the [*Markdown style guide*] for more detailed style conventions.
250
253
 
251
- [SPEC.md]: SPEC.md
254
+ [*Markdown style guide*]: ./AGENTS.md#markdown-style-guide
252
255
 
253
256
 
254
257
  Library usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hongdown",
3
- "version": "0.1.0-dev.8+4f6b2b27",
3
+ "version": "0.1.0-dev.9+629cb07a",
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": ">=18"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@hongdown/darwin-arm64": "0.1.0-dev.8+4f6b2b27",
31
- "@hongdown/darwin-x64": "0.1.0-dev.8+4f6b2b27",
32
- "@hongdown/linux-arm64": "0.1.0-dev.8+4f6b2b27",
33
- "@hongdown/linux-x64": "0.1.0-dev.8+4f6b2b27",
34
- "@hongdown/win32-arm64": "0.1.0-dev.8+4f6b2b27",
35
- "@hongdown/win32-x64": "0.1.0-dev.8+4f6b2b27"
30
+ "@hongdown/darwin-arm64": "0.1.0-dev.9+629cb07a",
31
+ "@hongdown/darwin-x64": "0.1.0-dev.9+629cb07a",
32
+ "@hongdown/linux-arm64": "0.1.0-dev.9+629cb07a",
33
+ "@hongdown/linux-x64": "0.1.0-dev.9+629cb07a",
34
+ "@hongdown/win32-arm64": "0.1.0-dev.9+629cb07a",
35
+ "@hongdown/win32-x64": "0.1.0-dev.9+629cb07a"
36
36
  }
37
37
  }