mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-27 01:30:44 +02:00
Only set superscript to comrak if it is set to crowbook
This commit is contained in:
parent
c57e503554
commit
afa2c3955d
@ -32,6 +32,9 @@ use comrak::nodes::{AstNode, NodeValue, ListType};
|
|||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||||
/// The list of features used in a document.
|
/// 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 struct Features {
|
||||||
pub image: bool,
|
pub image: bool,
|
||||||
pub footnote: bool,
|
pub footnote: bool,
|
||||||
@ -178,7 +181,7 @@ impl Parser {
|
|||||||
options.ext_table = true;
|
options.ext_table = true;
|
||||||
options.ext_autolink = true;
|
options.ext_autolink = true;
|
||||||
options.ext_tasklist = true;
|
options.ext_tasklist = true;
|
||||||
options.ext_superscript = false;
|
options.ext_superscript = self.superscript;
|
||||||
options.ext_footnotes = true;
|
options.ext_footnotes = true;
|
||||||
options.ext_description_lists = true;
|
options.ext_description_lists = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user