Skip to content

Commit

Permalink
Improve processing GitHub markdown format
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisV committed Oct 15, 2024
1 parent cf8465a commit 30b92e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
PROCESS_PRE_RELEASES = False

github_extra_html_tags_pattern = re.compile("<p align=\".*?\".*?>|</p>|<a name=\".*?\">|</a>|<picture>.*?</picture>|"
"</?h[1-4]>|</?sub>|</?sup>|</?details>|</?summary>|</?b>|<!--.*?-->",
"</?h[1-4]>|</?sub>|</?sup>|</?details>|</?summary>|</?b>|</?dl>|</?dt>|"
"</?dd>|</?em>|<!--.*?-->",
flags=re.DOTALL)
github_img_html_tag_pattern = re.compile("<img src=\"(.*?)\".*?>")
github_img_html_tag_pattern = re.compile("<img .*?src=\"(.*?)\".*?>")

db = SQLAlchemy()
migrate = Migrate()
Expand Down

0 comments on commit 30b92e9

Please sign in to comment.