From dcf34eff5651294d7c579431143b8638fbe338df Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 4 Mar 2023 14:02:36 +0100 Subject: feat: add superscript support --- src/description.rs | 4 ++++ 1 file changed, 4 insertions(+) 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!(); -- cgit v1.2.3-18-g5258