feature: add dash renderer

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2024-12-08 10:14:10 +01:00
parent 746f18e735
commit bedab8faa8
2 changed files with 25 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import re
from mistletoe.span_token import SpanToken
class Dash(SpanToken):
"""
Dash span token ( - ).
Identifies a dash in a text.
"""
pattern = re.compile(r'(\s-\s)')