mark_subsup¶
- class atlas_doc_parser.marks.mark_subsup.MarkSubsupAttrs(type: Literal['sub', 'sup'] = REQ)[source]¶
Attributes for
MarkSubsup.- Parameters:
type – Required. Either “sub” for subscript or “sup” for superscript.
- class atlas_doc_parser.marks.mark_subsup.MarkSubsup(type: str = 'subsup', attrs: MarkSubsupAttrs = REQ)[source]¶
Applies superscript or subscript styling to text nodes.
The subsup mark is used to render text as either superscript (above the baseline) or subscript (below the baseline). The
attrs.typeattribute determines which style is applied.