summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-03-04 14:02:36 +0100
committerHampusM <hampus@hampusmat.com>2023-03-04 14:02:36 +0100
commitdcf34eff5651294d7c579431143b8638fbe338df (patch)
treed7cb5e4165cbd42935812f27ee90b840a13df001 /src
parentd3868aca9f6bc45dcc11f78ddefa40bcc4af8bbf (diff)
feat: add superscript support
Diffstat (limited to 'src')
-rw-r--r--src/description.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/description.rs b/src/description.rs
index 3a5b26f..92af9c1 100644
--- a/src/description.rs
+++ b/src/description.rs
@@ -283,6 +283,9 @@ pub enum ParagraphPart
/// Informal equation part.
InformalEquation(String),
+
+ /// Superscript part.
+ Superscript(String),
}
impl FromElements for ParagraphPart
@@ -318,6 +321,7 @@ impl ParagraphPart
"inlineequation" => Self::InlineEquation,
"programlisting" => Self::ProgramListing,
"citerefentry" => Self::Entry,
+ "superscript" => Self::Superscript,
"variablelist" | "itemizedlist" | "informaltable" | "para" | "footnote"
| "table" | "informalequation" => |_| {
unreachable!();