diff options
author | HampusM <hampus@hampusmat.com> | 2023-02-26 15:08:13 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-02-26 15:08:13 +0100 |
commit | e27700296d3d61254f8d95852457ae769ca8a511 (patch) | |
tree | 473891c3c16b1cbf7be0b2dc5d0f91d14bb5d15b | |
parent | d5bc9d7c69516c4f9120447864e5464a73122711 (diff) |
feat: add support for code in description
-rw-r--r-- | src/description.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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!(); |