added more custom spans
This commit is contained in:
parent
51b8167dec
commit
bbeaf96cb0
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue