[docs]@dataclasses.dataclass(frozen=True)classMarkCode(BaseMark):""" Inline code mark for text nodes. This mark applies inline code styling to text. It can only be combined with the ``link`` mark. - https://developer.atlassian.com/cloud/jira/platform/apis/document/marks/code/ """type:str=TypeEnum.code.value
[docs]defto_markdown(self,text:str,)->str:if"\n"intext:raiseValueError("Code mark cannot contain newlines in markdown representation.")iftext.strip():returnf"`` {text} ``"else:returntext