Skip to content

Commit 5841a83

Browse files
committed
Use AUTOLINK extension with hoedown
Fixes: #40
1 parent e7756a0 commit 5841a83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/web/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,14 @@ fn render_markdown(text: &str) -> String {
214214
use hoedown::renderer::html;
215215

216216
let extensions = {
217-
use hoedown::{FENCED_CODE, FOOTNOTES, SUPERSCRIPT, TABLES};
217+
use hoedown::{FENCED_CODE, FOOTNOTES, SUPERSCRIPT, TABLES, AUTOLINK};
218218

219219
let mut extensions = Extension::empty();
220220
extensions.insert(FENCED_CODE);
221221
extensions.insert(FOOTNOTES);
222222
extensions.insert(SUPERSCRIPT);
223223
extensions.insert(TABLES);
224+
extensions.insert(AUTOLINK);
224225

225226
extensions
226227
};

0 commit comments

Comments
 (0)