removed already implemented todos in parser
This commit is contained in:
parent
61566ffa42
commit
dc9676155d
@ -254,14 +254,12 @@ class MarkdownBlogParser:
|
||||
# we have a table! how exciting!
|
||||
if self.startswith('|'):
|
||||
# skip headers
|
||||
# TODO: validate headers
|
||||
headers, span = self.read_until('\n')
|
||||
headers = headers.split('|')
|
||||
if not len(headers) == 4:
|
||||
raise ParseError("Expected table header here (like '|Category | Rating / Score |'", span.transform(end=-1))
|
||||
table_name = to_json_field_name(headers[2])
|
||||
# skip alignment col
|
||||
# TODO: validate alignment col
|
||||
line, span = self.read_until('\n')
|
||||
if not len(line.split('|')) == len(headers):
|
||||
raise ParseError("Alignment row seems invalid, must contain the same number of '|' as headers!", span.transform(end=-1))
|
||||
|
Loading…
Reference in New Issue
Block a user