markdown-it-sup

Crates.iomarkdown-it-sup
lib.rsmarkdown-it-sup
version1.0.0
sourcesrc
created_at2024-09-12 16:54:12.523044
updated_at2024-09-12 16:54:12.523044
descriptionA markdown-it plugin for parsing superscripts
homepage
repositoryhttps://github.com/LemmyNet/lemmy-markdown-it-plugins
max_upload_size
id1372952
size39,426
(SleeplessOne1917)

documentation

README

License Latest version Downloads for latest version

markdown-it-sup.rs

A markdown-it plugin to process superscript.

To load the plugin:

let mut parser = markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(&mut parser);

markdown_it_sup::add(&mut parser);

let html = parser.parse("Markdown^TM^").xrender();
assert_eq!(html, String::from("<p>Markdown<sup>TM</sup></p>\n"));
Commit count: 0

cargo fmt