From dc9676155d59aedfd953e5294687599b90146b72 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 7 Aug 2022 19:11:20 +0200 Subject: [PATCH] removed already implemented todos in parser --- parse-md.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/parse-md.py b/parse-md.py index f25bbc9..12b208f 100644 --- a/parse-md.py +++ b/parse-md.py @@ -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))