Crates.io | markdown-it-sup |
lib.rs | markdown-it-sup |
version | 1.0.0 |
source | src |
created_at | 2024-09-12 16:54:12.523044 |
updated_at | 2024-09-12 16:54:12.523044 |
description | A markdown-it plugin for parsing superscripts |
homepage | |
repository | https://github.com/LemmyNet/lemmy-markdown-it-plugins |
max_upload_size | |
id | 1372952 |
size | 39,426 |
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"));