From afa2c3955de58a25dd7c8c423aa39ee7b78efcd7 Mon Sep 17 00:00:00 2001 From: Elisabeth Henry Date: Fri, 15 Mar 2019 23:20:46 +0100 Subject: [PATCH] Only set superscript to comrak if it is set to crowbook --- src/lib/parser.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/parser.rs b/src/lib/parser.rs index 10fec4d..dc19285 100644 --- a/src/lib/parser.rs +++ b/src/lib/parser.rs @@ -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;