Skip to content

Commit 7ff3f73

Browse files
committed
Refactor badges
1 parent e0ca3f6 commit 7ff3f73

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

readme.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88

99
# markdown-rs
1010

11-
[![Build][build-badge]][build]
12-
[![Coverage][coverage-badge]][coverage]
13-
[![GitHub][repo-badge]][repo]
14-
[![docs.rs][docs-badge]][docs]
15-
[![crates.io][crate-badge]][crate]
11+
[![Build][badge-build-image]][badge-build-url]
12+
[![Coverage][badge-coverage-image]][badge-coverage-url]
1613

1714
> 👉 **Note**:
1815
> this is a new crate that reuses an old name.
@@ -35,6 +32,12 @@ CommonMark compliant markdown parser in Rust with ASTs and extensions.
3532
* [x] **[ast][mdast]**
3633
(mdast)
3734

35+
## Links
36+
37+
* [GitHub: `wooorm/markdown-rs`][repo]
38+
* [`crates.io`: `markdown`][crate]
39+
* [`docs.rs`: `markdown`][docs]
40+
3841
## When should I use this?
3942

4043
* if you *just* want to turn markdown into HTML (with maybe a few extensions)
@@ -74,7 +77,7 @@ use [`mdxjs-rs`][mdxjs-rs].
7477
* for the API,
7578
see the [crate docs][docs]
7679
* for questions,
77-
see [Discussions][chat]
80+
see [Discussions][]
7881
* to help,
7982
see [contribute][] or [sponsor][] below
8083

@@ -389,27 +392,21 @@ Special thanks go out to:
389392

390393
[MIT][license] © [Titus Wormer][author]
391394

392-
[build-badge]: https://github.com/wooorm/markdown-rs/workflows/main/badge.svg
393-
394-
[build]: https://github.com/wooorm/markdown-rs/actions
395+
[badge-build-image]: https://github.com/wooorm/markdown-rs/workflows/main/badge.svg
395396

396-
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/markdown-rs.svg
397+
[badge-build-url]: https://github.com/wooorm/markdown-rs/actions
397398

398-
[coverage]: https://codecov.io/github/wooorm/markdown-rs
399+
[badge-coverage-image]: https://img.shields.io/codecov/c/github/wooorm/markdown-rs.svg
399400

400-
[repo-badge]: https://img.shields.io/badge/GitHub-wooorm%2Fmarkdown--rs-brightgreen
401-
402-
[repo]: https://github.com/wooorm/markdown-rs
403-
404-
[docs-badge]: https://img.shields.io/docsrs/markdown
401+
[badge-coverage-url]: https://codecov.io/github/wooorm/markdown-rs
405402

406403
[docs]: https://docs.rs/markdown/1.0.0-alpha.23/markdown/
407404

408-
[crate-badge]: https://img.shields.io/crates/v/markdown
409-
410405
[crate]: https://crates.io/crates/markdown/1.0.0-alpha.23
411406

412-
[chat]: https://github.com/wooorm/markdown-rs/discussions
407+
[repo]: https://github.com/wooorm/markdown-rs
408+
409+
[discussions]: https://github.com/wooorm/markdown-rs/discussions
413410

414411
[commonmark]: https://spec.commonmark.org
415412

0 commit comments

Comments
 (0)