Skip to content

Instantly share code, notes, and snippets.

@AntonMyr
Created September 14, 2021 13:56
Show Gist options
  • Save AntonMyr/cbd9b9055a015c0b7b8acc747d62bc6a to your computer and use it in GitHub Desktop.
Save AntonMyr/cbd9b9055a015c0b7b8acc747d62bc6a to your computer and use it in GitHub Desktop.
# File: step_2.py
markdown_fp = open("step_2.md", "r")
# Needed for later
idea_list = []
idea_counter = 0
inside_tag = False
for line in markdown_fp:
start_tag = "<i" in line
end_tag = "i>" in line
outside_tag = not inside_tag
if start_tag and outside_tag:
# Start tag
if end_tag and inside_tag:
# End tag
pass
if inside_tag:
# Extract
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment