added more custom spans

This commit is contained in:
vicky 2022-06-02 18:16:46 +02:00
parent 51b8167dec
commit bbeaf96cb0
2 changed files with 10 additions and 2 deletions

View File

@ -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"

View File

@ -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: