diff --git a/src/bootstraparse/modules/syntax.py b/src/bootstraparse/modules/syntax.py index 358e9ce..1bd20fc 100644 --- a/src/bootstraparse/modules/syntax.py +++ b/src/bootstraparse/modules/syntax.py @@ -32,6 +32,7 @@ class SemanticType: def __init__(self, content): self.content = content + self.label_container = self.label def to_markup(self): """ @@ -207,7 +208,7 @@ class EtStrikethroughToken(ExplicitSemanticType): label = "text:strikethrough" -class EtCustomSpanToken(SemanticType): +class EtCustomSpanToken(AddFirstElementToLabel, ExplicitSemanticType): """(#int)""" label = "text:custom_span" @@ -251,7 +252,7 @@ class StructuralElementEndToken(AddFirstElementToLabel, ClosedSemanticType): return f"se:start:{self._addendum}" -class HyperlinkToken(SemanticType): +class HyperlinkToken(FinalSemanticType): label = "hyperlink" diff --git a/workflow-documents/specs.yaml b/workflow-documents/specs.yaml index d85b691..531be6c 100644 --- a/workflow-documents/specs.yaml +++ b/workflow-documents/specs.yaml @@ -28,6 +28,13 @@ underline: type: enhanced text scope: first release +small: + bpr: tbd + markdown compatible: tbd + accepts arguments: no + type: enhanced text + scope: post-release + # In-line elements hyperlinks: