BigUpdate
Python application / build (push) Has been cancelled

This commit is contained in:
Igor20264
2026-09-03 10:44:08 +03:00
parent d2da20fdb2
commit 516abe7b83
177 changed files with 40178 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
from marko.inline import InlineElement
from re import Match
class Reference(InlineElement):
"""Represents Reference element
Syntax: @Type:label
Label is only word characters so trailing punctuation in
«@Рисунок:id,» or «(@Рисунок:id)» is not swallowed.
"""
pattern = r"@(\w+):(\w+)"
def __init__(self, match: Match[str]):
self.type = match.group(1)
self.name = match.group(2)