Crates.io | markdown-it-autolink |
lib.rs | markdown-it-autolink |
version | 0.2.0 |
source | src |
created_at | 2023-06-26 23:08:40.893417 |
updated_at | 2023-08-03 16:55:14.093612 |
description | A markdown-it plugin for parsing GFM autolinks |
homepage | |
repository | https://github.com/chrisjsewell/markdown-it-plugins.rs |
max_upload_size | |
id | 900787 |
size | 33,244 |
A markdown-it.rs plugin that implements the Github Flavoured Markdown autolink extension.
let md = &mut markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(md);
markdown_it_autolink::add(md);
md.parse("www.example.com").render();
// <p><a href="http://www.example.com">www.example.com</a></p>