Markdown2

Latest version: v2.5.3

Safety actively analyzes 714919 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 11

1.4.2

Not secure
- [issue 84, issue 87] Fix problems with fenced-code-blocks getting
double-processed.

1.4.1

Not secure
- [issue 67] Fix an sub-`ul` inside a `ol` not working with an indent less
than 4 spaces.

- Fix code blocks and fenced-code-blocks to work with a single leading newline
at the start of the input.

- [issue 86, 'fenced-code-blocks' extra] Fix fenced code blocks not being
parsed out before other syntax elements, like headers.

- [issue 83, 'fenced-code-blocks' and 'code-color' extras] Allow 'cssclass'
code coloring option (passed to pygments) to be overridden (by
https://github.com/kaishaku). E.g.:

import markdown2
html = markdown2.markdown(text,
extras={'fenced-code-blocks': {'cssclass': 'mycode'}})

1.4.0

Not secure
- [issue 64] Python 3 support! markdown2.py supports Python 2 and 3 in the
same file without requiring install-time 2to3 transformation.

1.3.1

Not secure
- [issue 80] Jython 2.2.1 support fix (by github.com/clach04)

1.3.0

Not secure
- Deprecate `code-color` extra. Use the `fenced-code-block` extra and
its cleaner mechanism for specifying the language, instead. This extra
will be removed in v2.0 or so.

- New `fenced-code-blocks` extra. It allows a code block to not have to be
indented by fencing it with '' on a line before and after. Based on
[GFM](<http://github.github.com/github-flavored-markdown/).

Some code:


print "hi"


It includes support for code syntax highlighting as per GFM. This requires
the `pygments` Python module to be on the pythonpath.

python
if True:
print "hi"

1.2.0

Not secure
- [issue 78, issue 77] Add "metadata" extra (github.com/slomo).

Page 7 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.