From d5bc9d7c69516c4f9120447864e5464a73122711 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 26 Feb 2023 15:01:09 +0100 Subject: feat: add support for emphasis in description --- src/description.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/description.rs') 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 /// .. 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!(); -- cgit v1.2.3-18-g5258