diff options
author | HampusM <hampus@hampusmat.com> | 2023-02-26 15:01:09 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-02-26 15:01:09 +0100 |
commit | d5bc9d7c69516c4f9120447864e5464a73122711 (patch) | |
tree | 2f1de4cf88bb28e8c1c0c751cffac40cfc61dc3c | |
parent | 5ab5fafd8f3cab7f82c11e7ad89f8fefd66e911c (diff) |
feat: add support for emphasis 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 ccd95b2..9264dc7 100644 --- a/src/description.rs +++ b/src/description.rs @@ -195,6 +195,9 @@ pub enum ParagraphPart /// <parameter>..</parameter> part. Parameter(String), + /// Emphasis part. + Emphasis(String), + /// Reference entry citation part. Entry(String), @@ -233,6 +236,7 @@ impl ParagraphPart "constant" => Self::Constant, "function" => Self::Function, "parameter" => Self::Parameter, + "emphasis" => Self::Emphasis, "citerefentry" => Self::Entry, "variablelist" | "itemizedlist" => |_| { unreachable!(); |