Skip to content

[BUG] Redundant/undocumented markdown.py blueprint alongside md2html.py — possible dead code #375

Description

@Nakshathra-2808

Description

The README's blueprints/ folder listing shows two separate files that
both appear to relate to Markdown handling:

├── blueprints/ │ ├── md2html.py │ └── markdown.py ​

But the "Folder Descriptions" section only documents one of them:
md2html.py – Converts MD to HTML with built-in css. markdown.py is
never mentioned anywhere else in the README.

The "Available endpoints" section also lists exactly one Markdown
endpoint:

POST /convertMdToHtml – Converts MD to HTML ​

So there's one documented endpoint, one documented blueprint file, but
two blueprint files total. Since every other file in blueprints/ maps
to exactly one documented endpoint, markdown.py looks like either:

  1. Leftover dead code from before the module was renamed to md2html.py
    (the markdown2 library in the tech stack list also hints this might
    have started as a more basic implementation later replaced), or
  2. A second, distinct markdown feature that was built but never
    documented or wired into a route.

Why this matters

If it's dead code, it's an easy cleanup (remove the file, possibly
also drop the app/__init__.py registration if one exists). If it's an
undocumented working endpoint, it should either be documented or, if
it's redundant with md2html.py, consolidated into one file so future
contributors don't get confused about which one to extend.

Suggested Fix

A maintainer (or whoever wrote it) confirms whether markdown.py is
still in use. If not, delete it and remove any stale references. If it
serves a different purpose, document it properly with its own endpoint
entry in the README.

Confidence

Medium — based entirely on the README's own folder listing being
internally inconsistent (one file documented, one not), not on having
read either file's actual contents.

Metadata

Metadata

Labels

GSSoCOpen Source EventbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions