Skip to content

Commit af0f4f6

Browse files
committed
README: update, minimise cm. fix missing doc.
1 parent ded7e04 commit af0f4f6

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017–2024, Asherah Connor and Comrak contributors
1+
Copyright (c) 2017–2025, Comrak contributors
22

33
All rights reserved.
44

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Comrak's library supports Rust <span class="msrv">1.65</span>+.
3232
- `dnf install comrak`
3333
- `nix run nixpkgs#comrak`
3434

35-
You can also find builds I've published in [GitHub Releases](https://github.com/kivikakk/comrak/releases), but they're limited to machines I have access to at the time of making them\! [webinstall.dev](https://webinstall.dev/comrak/) offers `curl | shell`-style installation of the latest of these for your OS.
35+
You can also find builds I've published in [GitHub Releases](https://github.com/kivikakk/comrak/releases), but they're limited to machines I have access to at the time of making them! [webinstall.dev](https://webinstall.dev/comrak/) offers `curl | shell`-style installation of the latest of these for your OS.
3636

3737
## Usage
3838

@@ -59,7 +59,7 @@ Options:
5959
-c, --config-file <PATH>
6060
Path to config file containing command-line arguments, or 'none'
6161
62-
[default: /home/runner/.config/comrak/config]
62+
[default: /Users/kivikakk/.config/comrak/config]
6363
6464
-i, --inplace
6565
To perform an in-place formatting
@@ -162,6 +162,9 @@ Options:
162162
--ignore-empty-links
163163
Ignore empty links
164164
165+
--experimental-minimize-commonmark
166+
Minimize escapes in CommonMark output using a trial-and-error algorithm
167+
165168
-h, --help
166169
Print help information (use `-h` for a summary)
167170
@@ -250,7 +253,7 @@ Spec](https://github.github.com/gfm/):
250253
- [Autolinks](https://github.github.com/gfm/#autolinks-extension-)
251254
- [Disallowed Raw HTML](https://github.github.com/gfm/#disallowed-raw-html-extension-)
252255

253-
Comrak additionally supports its own extensions, which are yet to be specced out (PRs welcome\!):
256+
Comrak additionally supports its own extensions, which are yet to be specced out (PRs welcome!):
254257

255258
- Superscript
256259
- Header IDs
@@ -301,7 +304,7 @@ depending on your use-case. Here are some other projects to consider:
301304
very fast, uses a novel parsing algorithm, and doesn't construct an AST (but you can use it to make one if you
302305
want). `cargo doc` uses this, as do many other projects in the ecosystem.
303306
- [markdown-rs](https://github.com/wooorm/markdown-rs) (1.x) looks worth watching.
304-
- Know of another library? Please open a PR to add it\!
307+
- Know of another library? Please open a PR to add it!
305308

306309
### Python bindings
307310

@@ -337,11 +340,11 @@ This will build and run benchmarks across all, and report the time taken by each
337340

338341
## Contributing
339342

340-
Contributions are **highly encouraged**; if you'd like to assist, consider checking out the [`good first issue` label](https://github.com/kivikakk/comrak/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)\! I'm happy to help provide direction and guidance throughout, even if (especially if\!) you're new to Rust or open source.
343+
Contributions are **highly encouraged**; if you'd like to assist, consider checking out the [`good first issue` label](https://github.com/kivikakk/comrak/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)! I'm happy to help provide direction and guidance throughout, even if (especially if!) you're new to Rust or open source.
341344

342345
Where possible I practice [Optimistic Merging](http://hintjens.com/blog:106) as described by Peter Hintjens. Please keep the [code of conduct](CODE_OF_CONDUCT.md) in mind too.
343346

344-
Thank you to Comrak's many contributors for PRs and issues opened\!
347+
Thank you to Comrak's many contributors for PRs and issues opened!
345348

346349
### Code Contributors
347350

@@ -350,17 +353,17 @@ Thank you to Comrak's many contributors for PRs and issues opened\!
350353
### Financial Contributors
351354

352355
Become a financial contributor and help sustain Comrak's development. I'm
353-
self-employed --- open-source software relies on the collective.
356+
self-employed open-source software relies on the collective.
354357

355358
- [GitHub Sponsors](https://github.com/sponsors/kivikakk)
356359

357360
## Contact
358361

359-
Asherah Connor \<ashe kivikakk ee\>
362+
Asherah Connor <ashe kivikakk ee\>
360363

361364
## Legal
362365

363-
Copyright (c) 2017–2024, Asherah Connor and Comrak contributors. Licensed under
366+
Copyright (c) 2017–2025, Comrak contributors. Licensed under
364367
the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).
365368

366369
`cmark` itself is is copyright (c) 2014, John MacFarlane.

examples/update-readme.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ fn main() -> Result<(), Box<dyn Error>> {
8383

8484
let mut options = Options::default();
8585
options.render.prefer_fenced = true;
86+
options.render.experimental_minimize_commonmark = true;
8687

8788
let mut out = vec![];
8889
format_commonmark(doc, &options, &mut out)?;

fuzz/Cargo.lock

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ struct Cli {
157157
#[arg(long)]
158158
ignore_empty_links: bool,
159159

160-
// Minimize escapes in CommonMark output using a trial-and-error algorithm.
160+
/// Minimize escapes in CommonMark output using a trial-and-error algorithm.
161161
#[arg(long)]
162162
experimental_minimize_commonmark: bool,
163163
}

0 commit comments

Comments
 (0)