fix: only match tag blocks when spanning multiple lines
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ captures = [
|
|||||||
class Tag(BlockToken):
|
class Tag(BlockToken):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def start(line):
|
def start(line):
|
||||||
return re.match(r"^\s*<(" + "|".join(captures) + r")+>", line)
|
return re.match(r"^\s*<(" + "|".join(captures) + r")+>$", line)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def read(cls, lines):
|
def read(cls, lines):
|
||||||
|
|||||||
Reference in New Issue
Block a user