Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainyan committed Nov 28, 2023
1 parent e8e3ab6 commit f166ba9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions document.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def purge_readme(
next_child = next(inner_it)
if isinstance(next_child, marko.block.Heading):
if not any(a in md.render(next_child) for a in subheaders):
#print("BREAK!")
break
elif not any( # TODO: other types
isinstance(next_child, a)
Expand All @@ -52,25 +51,9 @@ def purge_readme(
marko.block.Paragraph,
)
):
#print(f"SKIP: {md.render(next_child)}")
continue

# for c in next_child.children:
# print(f'"{doc.children[i]}"')
# print(md.render(doc.children[i]))
# print("---")
# print(c)
# print(md.render(c))
# print()
next_child.children.clear()
doc.children.pop(i)
#print(f'""{doc.children[i]}""')
continue

# Remove old content
# for _ in range(len(next_child.children)): # type: ignore
# next_child.children.pop() # type: ignore
# doc.children.pop(i)
except StopIteration:
break
except StopIteration:
Expand Down

0 comments on commit f166ba9

Please sign in to comment.