justmywyw commited on
Commit
ef814fe
1 Parent(s): fdbb00c

Update components/parse_markdown.py

Browse files
Files changed (1) hide show
  1. components/parse_markdown.py +2 -4
components/parse_markdown.py CHANGED
@@ -31,14 +31,12 @@ class MarkdownParser(HTMLParser):
31
  elif self.current_tag == "demo-suffix":
32
  self.value[-1]["suffix"] += data
33
 
34
- def handle_startendtag(self, tag: str,
35
- attrs: list[tuple[str, str | None]]) -> None:
36
  if tag not in enable_tags:
37
  self.handle_data(self.get_starttag_text())
38
  return
39
 
40
- def handle_starttag(self, tag: str,
41
- attrs: list[tuple[str, str | None]]) -> None:
42
  if (tag not in enable_tags):
43
  self.handle_data(self.get_starttag_text())
44
  return
 
31
  elif self.current_tag == "demo-suffix":
32
  self.value[-1]["suffix"] += data
33
 
34
+ def handle_startendtag(self, tag: str, attrs) -> None:
 
35
  if tag not in enable_tags:
36
  self.handle_data(self.get_starttag_text())
37
  return
38
 
39
+ def handle_starttag(self, tag: str, attrs) -> None:
 
40
  if (tag not in enable_tags):
41
  self.handle_data(self.get_starttag_text())
42
  return