feat: enable some github extensions for markdown

This commit is contained in:
Price Hiller 2023-08-29 20:48:06 -05:00
parent 62725b197c
commit a2f4f54ace
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -36,6 +36,13 @@ impl MDComrakSettings<'_> {
let mut options = ComrakOptions::default();
options.render.unsafe_ = true;
options.extension.front_matter_delimiter = Some("---".to_owned());
options.extension.autolink = true;
options.extension.table = true;
options.extension.tasklist = true;
options.extension.superscript = true;
options.extension.header_ids = Some("header-id-".to_string());
options.extension.footnotes = true;
let mut plugins = ComrakPlugins::default();
plugins.render.codefence_syntax_highlighter = Some(&*SYNTECT_ADAPTER);
@ -57,4 +64,4 @@ impl MDComrakSettings<'_> {
Ok(adapter)
}
}
}