From e27700296d3d61254f8d95852457ae769ca8a511 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 26 Feb 2023 15:08:13 +0100 Subject: feat: add support for code in description --- src/description.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/description.rs b/src/description.rs index 9264dc7..31eff1e 100644 --- a/src/description.rs +++ b/src/description.rs @@ -198,6 +198,9 @@ pub enum ParagraphPart /// Emphasis part. Emphasis(String), + /// Code part. + Code(String), + /// Reference entry citation part. Entry(String), @@ -237,6 +240,7 @@ impl ParagraphPart "function" => Self::Function, "parameter" => Self::Parameter, "emphasis" => Self::Emphasis, + "code" => Self::Code, "citerefentry" => Self::Entry, "variablelist" | "itemizedlist" => |_| { unreachable!(); -- cgit v1.2.3-18-g5258