v0.6.0 BigUpdate
This commit is contained in:
@@ -45,4 +45,4 @@ class Caption(BlockElement):
|
||||
def parse(cls, source: Source) -> Match[str] | None:
|
||||
m = source.match
|
||||
source.consume()
|
||||
return m
|
||||
return m
|
||||
@@ -5,11 +5,12 @@ from marko.ext.gfm.elements import TableCell as GfmTableCell
|
||||
|
||||
|
||||
MERGE_V_MARKERS = {"^", "^^"}
|
||||
MERGE_H_MARKERS = {">", ">>"}
|
||||
# `<` is the same colspan-continue as `>`, and is allowed in the header row.
|
||||
MERGE_H_MARKERS = {">", ">>", "<", "<<"}
|
||||
|
||||
|
||||
class TableCell(GfmTableCell):
|
||||
"""GFM table cell with rowspan/colspan continue markers (^ / >)."""
|
||||
"""GFM table cell with rowspan/colspan continue markers (^ / > / <)."""
|
||||
|
||||
def __init__(self, text: str, position: int | None = None) -> None:
|
||||
stripped = text.strip()
|
||||
|
||||
Reference in New Issue
Block a user