feat: enable some github extensions for markdown
This commit is contained in:
parent
62725b197c
commit
a2f4f54ace
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user