From 2df4eb37ecf373d04d5a499f31fef3a190e25164 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 26 Feb 2023 22:02:02 +0100 Subject: feat: add program listing support --- src/description.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/description.rs b/src/description.rs index e436e40..7761f7b 100644 --- a/src/description.rs +++ b/src/description.rs @@ -204,6 +204,9 @@ pub enum ParagraphPart /// Inline equation part. InlineEquation(String), + /// Program listing part. + ProgramListing(String), + /// Reference entry citation part. Entry(String), @@ -245,6 +248,7 @@ impl ParagraphPart "emphasis" => Self::Emphasis, "code" => Self::Code, "inlineequation" => Self::InlineEquation, + "programlisting" => Self::ProgramListing, "citerefentry" => Self::Entry, "variablelist" | "itemizedlist" => |_| { unreachable!(); -- cgit v1.2.3-18-g5258