feature: add underline to renderer

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2024-12-07 15:29:33 +01:00
parent c6b3e58419
commit fbb26a8dd1
3 changed files with 31 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
import re
from mistletoe.span_token import SpanToken
class Underline(SpanToken):
"""
Underline span token (<u>Untersrich</u>).
Identifies underlined text.
"""
pattern = re.compile(r'<u>(.+)</u>')