hongdown 0.1.0-dev.7 → 0.1.0-dev.8

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 +38 -65
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,32 +1,45 @@
1
1
  Hongdown
2
2
  ========
3
3
 
4
- Hongdown is a Markdown formatter that enforces Hong Minhee's Markdown style
5
- conventions. The formatter is implemented in Rust using the [comrak] library
6
- for parsing. It produces consistently formatted Markdown output following
7
- a distinctive style used across multiple projects including [Fedify], [Hollo],
8
- and [Vertana].
9
-
10
- The name *Hongdown* is a portmanteau of *Hong* (from Hong Minhee, the author)
11
- and *Markdown*. It also sounds like the Korean word *hongdapda* (홍답다),
12
- meaning "befitting of Hong" or "Hong-like."
4
+ [![crates.io][crates.io badge]][crates.io]
5
+ [![npm][npm badge]][npm]
6
+ [![GitHub Actions][GitHub Actions badge]][GitHub Actions]
13
7
 
14
- [comrak]: https://docs.rs/comrak
15
- [Fedify]: https://github.com/dahlia/fedify
16
- [Hollo]: https://github.com/dahlia/hollo
17
- [Vertana]: https://github.com/dahlia/vertana
8
+ Hongdown is a Markdown formatter that enforces [Hong Minhee's Markdown style]
9
+ conventions. The formatter is implemented in Rust using the [Comrak] library
10
+ for parsing. It produces consistently formatted Markdown output following
11
+ a distinctive style used across multiple projects including [Fedify], [LogTape],
12
+ and [Optique].
13
+
14
+ [crates.io badge]: https://img.shields.io/crates/v/hongdown?logo=rust
15
+ [crates.io]: https://crates.io/crates/hongdown
16
+ [npm badge]: https://img.shields.io/npm/v/hongdown?logo=npm
17
+ [npm]: https://www.npmjs.com/package/hongdown
18
+ [GitHub Actions badge]: https://github.com/dahlia/hongdown/actions/workflows/main.yaml/badge.svg
19
+ [GitHub Actions]: https://github.com/dahlia/hongdown/actions/workflows/main.yaml
20
+ [Hong Minhee's Markdown style]: ./AGENTS.md#markdown-style-guide
21
+ [Comrak]: https://comrak.ee/
22
+ [Fedify]: https://fedify.dev/
23
+ [LogTape]: https://logtape.org/
24
+ [Optique]: https://optique.dev/
18
25
 
19
26
 
20
27
  Installation
21
28
  ------------
22
29
 
23
- ### npm (Node.js)
30
+ ### npm
24
31
 
25
32
  ~~~~ bash
26
33
  npm install -g hongdown
27
34
  ~~~~
28
35
 
29
- ### Cargo (Rust)
36
+ ### mise
37
+
38
+ ~~~~ bash
39
+ mise use github:dahlia/hongdown
40
+ ~~~~
41
+
42
+ ### Cargo
30
43
 
31
44
  ~~~~ bash
32
45
  cargo install hongdown
@@ -134,6 +147,8 @@ indent_width = 4 # Indentation for nested items
134
147
  [ordered_list]
135
148
  odd_level_marker = "." # "1." at odd nesting levels
136
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
137
152
 
138
153
  [code_block]
139
154
  fence_char = "~" # "~" or "`"
@@ -251,60 +266,18 @@ println!("{}", output);
251
266
  ~~~~
252
267
 
253
268
 
254
- TODO
255
- ----
256
-
257
- ### Phase 1: Core formatting
258
-
259
- - [x] Basic CLI with file input/output
260
- - [x] Front matter preservation (YAML/TOML)
261
- - [x] Headings (setext and ATX)
262
- - [x] Paragraphs with line wrapping
263
- - [x] Lists (ordered and unordered)
264
- - [x] Code blocks (fenced)
265
- - [x] Block quotes
266
- - [x] Inline formatting (emphasis, strong, code, links)
267
- - [x] Basic test suite
268
-
269
- ### Phase 2: Extended syntax
270
-
271
- - [x] Tables with alignment
272
- - [x] Definition lists
273
- - [x] GitHub alerts/admonitions
274
- - [x] Footnotes
275
- - [x] Reference link collection and placement
276
-
277
- ### Phase 3: Polish
278
-
279
- - [x] Configuration file support
280
- - [x] Config file parsing and discovery (`.hongdown.toml`)
281
- - [x] `line_width` option
282
- - [x] `[heading]` section
283
- - [x] `setext_h1` option
284
- - [x] `setext_h2` option
285
- - [x] `[list]` section
286
- - [x] `unordered_marker` option
287
- - [x] `leading_spaces` option
288
- - [x] `trailing_spaces` option
289
- - [x] `indent_width` option
290
- - [x] `[ordered_list]` section
291
- - [x] `odd_level_marker` option
292
- - [x] `even_level_marker` option
293
- - [x] `[code_block]` section
294
- - [x] `fence_char` option
295
- - [x] `min_fence_length` option
296
- - [x] `space_after_fence` option
297
- - [x] Check mode for CI integration
298
- - [x] Diff output mode
299
- - [x] Disable directives
300
- - [x] Edge case handling
301
- - [ ] Performance optimization
269
+ Etymology
270
+ ---------
271
+
272
+ The name *Hongdown* is a portmanteau of *Hong* (from Hong Minhee, the author)
273
+ and *Markdown*. It also sounds like the Korean word *hongdapda* (홍답다),
274
+ meaning “befitting of Hong” or “Hong-like.”
302
275
 
303
276
 
304
277
  License
305
278
  -------
306
279
 
307
- Distributed under the [GPL-3.0-or-later]. See [LICENSE] for more information.
280
+ Distributed under the [GPL-3.0-or-later]. See *[LICENSE]* for more information.
308
281
 
309
282
  [GPL-3.0-or-later]: https://www.gnu.org/licenses/gpl-3.0.html
310
- [LICENSE]: LICENSE
283
+ [LICENSE]: ./LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hongdown",
3
- "version": "0.1.0-dev.7+6178b8ad",
3
+ "version": "0.1.0-dev.8+4f6b2b27",
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.7+6178b8ad",
31
- "@hongdown/darwin-x64": "0.1.0-dev.7+6178b8ad",
32
- "@hongdown/linux-arm64": "0.1.0-dev.7+6178b8ad",
33
- "@hongdown/linux-x64": "0.1.0-dev.7+6178b8ad",
34
- "@hongdown/win32-arm64": "0.1.0-dev.7+6178b8ad",
35
- "@hongdown/win32-x64": "0.1.0-dev.7+6178b8ad"
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"
36
36
  }
37
37
  }