markdown-linkify

Crates.iomarkdown-linkify
lib.rsmarkdown-linkify
version0.3.1
sourcesrc
created_at2023-08-23 12:22:53.438704
updated_at2023-10-01 17:49:37.840789
descriptionMarkdown preprocessor for substiting link shorthands to valid links according to configurable regexes and custom substitution implementations
homepage
repositoryhttps://github.com/barafael/markdown-tools
max_upload_size
id951937
size91,779
Rafael Bachmann (barafael)

documentation

README

Markdown Linkify

Replace link shorthands, such as

In [PS-128], the issue is described in detail.

with actual links. For example, the above could be transformed to:

In [PS-128](https://www.company.jira.com/issues/PS-128), the issue is described in detail.

Custom replacers exist, so far only for docs.rs and doc.rust-lang.org/.

See test.md for the supported expressions.

Supported link types

Supports [tag]-style "broken links" and many forms of [title or empty](tag "optional hover text").

The specific replacements depend on the matching transformer.

TODO

  • code blocks in links
  • make regex replacer which can be configured by its own file
  • make regex replacer config files for the existing usecases
  • org-mode frontend for agnostic replacers
  • local rustdoc replacer
  • collect replacer ideas, github issue replacer?
  • unit tests for replacers, linkify
  • documentation
  • support composite text events
  • implement LinkMetadata as iterator
  • figure out how to publish linkify on crates.io
  • check how code insertion should actually work
  • make replacer API in linkify and make empty playground inserter work with it
Commit count: 88

cargo fmt