1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-27 04:46:16 +02:00

Only set superscript to comrak if it is set to crowbook

This commit is contained in:
Elisabeth Henry 2019-03-15 23:20:46 +01:00
parent c57e503554
commit afa2c3955d

View File

@ -32,6 +32,9 @@ use comrak::nodes::{AstNode, NodeValue, ListType};
#[derive(Debug, Copy, Clone, PartialEq)]
/// The list of features used in a document.
///
/// This is used by the renderers to only require some packages if they
/// are needed.
pub struct Features {
pub image: bool,
pub footnote: bool,
@ -178,7 +181,7 @@ impl Parser {
options.ext_table = true;
options.ext_autolink = true;
options.ext_tasklist = true;
options.ext_superscript = false;
options.ext_superscript = self.superscript;
options.ext_footnotes = true;
options.ext_description_lists = true;