Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
353 commits
Select commit Hold shift + click to select a range
e0572c3
Update CHANGES.md
nicholasserra Jul 11, 2022
3e79e61
Merge pull request #454 from Crozzers/fix-emacs-file-vars
nicholasserra Jul 11, 2022
8710b8c
Update CHANGES.md
nicholasserra Jul 11, 2022
50bdec6
Merge pull request #457 from ambv/issue313
nicholasserra Jul 11, 2022
e69e37e
Changes and contributors
nicholasserra Jul 11, 2022
d2907be
Merge pull request #455 from momja/fix-code-block-indentation-in-lists
nicholasserra Jul 14, 2022
5555c4a
Changes and contributors
nicholasserra Jul 14, 2022
3669913
Merge pull request #434 from Crozzers/fix-xss-filter-bypass
nicholasserra Jul 17, 2022
52b2187
Update CHANGES.md
nicholasserra Jul 17, 2022
88d5262
Use subprocess instead of `os.system` in testall.py
Crozzers Jul 19, 2022
faee13e
Re-print test warnings after tests have ran (issue #458).
Crozzers Jul 19, 2022
ef344dc
Fix emacs one-liner file vars having surrounding whitespace stripped
Crozzers Jul 20, 2022
4a1484c
Add test case for #460
Crozzers Jul 20, 2022
6032f8b
Merge pull request #460 from Crozzers/fix-emacs-oneliners
nicholasserra Jul 21, 2022
33a6bc7
Fix incorrect test case for `break-on-newline` extra
Crozzers Aug 6, 2022
a4158cc
Fix incorrect result for multi-level lists (issue #275)
Crozzers Aug 6, 2022
5ae3f9d
Update admonitions test case to make tests pass
Crozzers Aug 6, 2022
0b58bf1
Fix `html-classes` extra not applying to code spans
Crozzers Aug 9, 2022
d24a32f
Merge pull request #464 from Crozzers/html-classes-code-spans
nicholasserra Aug 10, 2022
4630228
Update CHANGES.md
nicholasserra Aug 10, 2022
fc1956c
add test case for pygments + div
mhils Aug 2, 2022
71c94f5
make sure that pygments blocks are picked up by HTML block detection
mhils Aug 2, 2022
f1634cc
fix pyshell blocks in blockquotes, refs mitmproxy/pdoc#429
mhils Aug 11, 2022
ee75897
Add optional dependencies to `setup.py`
Crozzers Aug 15, 2022
9e380f4
Use `setup.py` extra requirements to install optional dependencies fo…
Crozzers Aug 15, 2022
cf4f8b6
Merge pull request #463 from Crozzers/fix-multilevel-lists
nicholasserra Aug 16, 2022
3dcc7fe
Update CHANGES.md
nicholasserra Aug 16, 2022
fcf4259
Merge branch 'master' into fix-pygments-block-matching
nicholasserra Aug 16, 2022
ac5e7b9
Merge pull request #462 from mhils/fix-pygments-block-matching
nicholasserra Aug 16, 2022
fb66eff
Update `CHANGES.md`
Crozzers Aug 16, 2022
bcb3104
Merge branch 'master' into extra-requires-setup-py
Crozzers Aug 16, 2022
1efd2a9
Merge branch 'master' into extra-requires-setup-py
Crozzers Aug 16, 2022
4ebe06d
Re-write `_uniform_outdent` function and remove `_uniform_outdent_lim…
Crozzers Aug 6, 2022
6e2a5f9
Update CHANGES.md
Crozzers Aug 17, 2022
c55d1c2
Add basic support for rendering wavedrom diagrams (#467).
Crozzers Aug 18, 2022
c12c659
Enable wavedrom extra functionality without requiring fenced-code-blo…
Crozzers Aug 19, 2022
7c960a7
Fix wavedrom diagrams breaking indentation levels
Crozzers Aug 19, 2022
33257c9
Fix wavedrom extra processing all fenced code blocks
Crozzers Aug 19, 2022
4de9d86
Call `_do_wavedrom_blocks` when running block gamut
Crozzers Aug 19, 2022
89fbd26
Add test case for wavedrom extra
Crozzers Aug 19, 2022
723e84d
Enable wavedrom usage even if optional dependency not installed.
Crozzers Aug 21, 2022
c3d4e41
Add support for ordered lists that don't start at 1. (issue #469)
Crozzers Aug 22, 2022
d2b252c
Update `CHANGES.md`
Crozzers Aug 22, 2022
821359d
Merge pull request #470 from Crozzers/lazy-numbered-lists
nicholasserra Aug 22, 2022
de296fa
Fix `AssertionError` with lazy numbered lists (issue #471)
Crozzers Aug 24, 2022
8c11faa
Update `CHANGES.md`
Crozzers Aug 24, 2022
de62483
Add missing opts file for test case
Crozzers Aug 24, 2022
9083a34
Merge pull request #472 from Crozzers/fix-assertion-error-issue471
nicholasserra Aug 26, 2022
1a72a2a
Merge branch 'master' into remove-duplicate-outdent-function
nicholasserra Aug 26, 2022
af5407d
Merge pull request #468 from Crozzers/remove-duplicate-outdent-function
nicholasserra Aug 26, 2022
824d03d
Add test for nested incomplete tag sanitization
vin01 Aug 30, 2022
db83d80
Add `<ul>` and `<ol>` tags to `html-classes` extra (#352)
Crozzers Sep 10, 2022
013375e
Fix sanitization for nested incomplete tags (see #473)
Crozzers Sep 12, 2022
bd5afbb
Merge pull request #475 from Crozzers/add-list-tags-to-html-classes
nicholasserra Sep 14, 2022
47d3653
Update CHANGES.md
nicholasserra Sep 14, 2022
eb5ff1a
Merge pull request #1 from Crozzers/fix-nested-incomplete-tag-sanitiz…
vin01 Sep 17, 2022
9b6fc0b
Merge pull request #473 from vin01/master
nicholasserra Sep 22, 2022
f0a342d
Update CHANGES.md
nicholasserra Sep 22, 2022
c25e73a
prepare for 2.4.4 release
nicholasserra Sep 25, 2022
dd9fd2b
prep for future dev
nicholasserra Sep 25, 2022
7981760
Merge branch 'master' into extra-requires-setup-py
nicholasserra Sep 25, 2022
b6bd66a
Merge pull request #466 from Crozzers/extra-requires-setup-py
nicholasserra Sep 25, 2022
6e020bd
prepare for 2.4.5 release
nicholasserra Sep 25, 2022
3f61134
prep for future dev
nicholasserra Sep 25, 2022
1859f05
Merge branch 'master' into feature-wavedrom-support
Crozzers Sep 26, 2022
8deb46b
Limit wavedrom installs to Python 3.7 and above
Crozzers Sep 26, 2022
943c87f
Update `CHANGES.md`
Crozzers Sep 26, 2022
b84d367
Replace some double quotes with single quotes
Crozzers Sep 29, 2022
d6651a4
Merge pull request #477 from Crozzers/feature-wavedrom-support
nicholasserra Sep 29, 2022
18b1a41
Fix mixing ordered and un-ordered lists combining into single list type.
Crozzers Oct 5, 2022
91a8944
Update `CHANGES.md`
Crozzers Oct 5, 2022
a8bc182
Merge pull request #480 from Crozzers/mix-ordered-and-unordered-list-…
nicholasserra Oct 6, 2022
309ed62
Add support fot telegram spoiler in extras
jk6521 Oct 17, 2022
d2b6a19
prepare for 2.4.6 release
nicholasserra Oct 20, 2022
a67c6d1
prep for future dev
nicholasserra Oct 20, 2022
0b10383
Fix hashing nested HTML blocks
Crozzers Oct 22, 2022
240dd35
Fix tests not passing due to list items incorrectly wrapped in `<p>` …
Crozzers Oct 26, 2022
1ab08d0
Fix `_strict_tag_block_sub` skipping all `<pre>` blocks
Crozzers Oct 26, 2022
4543b54
Slight refactor of the `_meta_data_pattern` regex
Crozzers Oct 26, 2022
f2c208c
Merge pull request #484 from Crozzers/refactor_metadata_re
nicholasserra Nov 1, 2022
499f733
Merge pull request #483 from Crozzers/div-closing-tag-paragraph-issue481
nicholasserra Nov 2, 2022
e124a6f
Update CHANGES.md
nicholasserra Nov 2, 2022
b567e4c
extras: improve regex pattern to support optional space
jk6521 Nov 5, 2022
0302c8e
Fix backslash being unable to escape raw HTML tags (issue #386)
Crozzers Nov 13, 2022
d51a450
Update `CHANGES.md`
Crozzers Nov 13, 2022
b396902
Merge pull request #486 from Crozzers/backslash-escape-html-tags
nicholasserra Nov 13, 2022
c72d245
Fix ampersands being escaped in URLs
Crozzers Nov 14, 2022
2481328
Merge branch 'master' into fix-escape-ampersand-in-href
Crozzers Nov 14, 2022
afdaa0b
Update `CHANGES.md`
Crozzers Nov 14, 2022
cbb5625
Remove redundant boolean
Crozzers Nov 15, 2022
607f473
Fix infinite loop
Crozzers Nov 16, 2022
1ae67e6
mermaid support
Ircama Nov 6, 2022
663e606
Merge pull request #482 from jk6521/master
nicholasserra Nov 27, 2022
e2497b5
Changes and contributors
nicholasserra Nov 27, 2022
8839f56
Merge pull request #485 from Ircama/ircama-mermaid
nicholasserra Nov 27, 2022
5489a2f
Changes and contributors
nicholasserra Nov 27, 2022
5264c9b
Pin old ubuntu for all the green
nicholasserra Dec 27, 2022
5cbb640
Merge pull request #492 from trentm/nicholasserra-ubuntu-runner-ci
nicholasserra Dec 27, 2022
132b1ed
Remove deprecated `code-color` extra.
Crozzers Dec 15, 2022
00a22f7
Fix #489.
Crozzers Dec 15, 2022
5cb1341
Update `CHANGES.md`
Crozzers Dec 15, 2022
dad7bc5
Merge pull request #490 from Crozzers/fix-indented-codeblocks-inside-…
nicholasserra Dec 28, 2022
b9855c0
Merge branch 'master' into fix-escape-ampersand-in-href
nicholasserra Dec 30, 2022
a9b8b72
Merge pull request #487 from Crozzers/fix-escape-ampersand-in-href
nicholasserra Dec 30, 2022
1fc5201
repair a ReDoS vulnerability in markdown2.py
DarkTinia Jan 18, 2023
ea615a9
add an install_requires in setup.py
DarkTinia Jan 19, 2023
b1e37a1
prepare for 2.4.7 release
nicholasserra Jan 22, 2023
07edaf4
prep for future dev
nicholasserra Jan 22, 2023
1e9880b
Update test cases for pygments 2.14
Crozzers Jan 27, 2023
7cba7e4
Add versioned tests for different pygments versions
Crozzers Jan 27, 2023
37b46c5
Merge pull request #497 from Crozzers/bump-pygments-2.14
nicholasserra Jan 31, 2023
e61d7ac
Fix #498
Crozzers Feb 4, 2023
16554e7
Update changes.md
Crozzers Feb 4, 2023
d6c7f18
Merge pull request #499 from Crozzers/fix-498
nicholasserra Feb 4, 2023
f456341
prepare for 2.4.8 release
nicholasserra Feb 12, 2023
42067dc
prep for future dev
nicholasserra Feb 12, 2023
f84d05b
Add <thead> tag to html-classes extra
animator Feb 18, 2023
e6602a6
Update markdown2.py
animator Feb 20, 2023
504f190
Merge pull request #500 from animator/thead-html-class
nicholasserra Feb 21, 2023
1815e4a
Changes and contributors
nicholasserra Feb 21, 2023
ffc9262
Fix link patterns extra matching against internal hashes
Crozzers Mar 11, 2023
d7d6471
Update `CHANGES.md`.
Crozzers Mar 11, 2023
5c72225
Replace deprecated `optparse` with `argparse`
Crozzers Mar 11, 2023
5d6b44d
Update `CHANGES.md` and fix docstring
Crozzers Mar 11, 2023
b5cbd8e
Restore original usage message and re-add version arg
Crozzers Mar 13, 2023
7bae1f9
Merge pull request #502 from Crozzers/remove-optparse-lib
nicholasserra Mar 13, 2023
aa0ea8a
Fix `_uniform_outdent` failing with empty strings (issue #505)
Crozzers Apr 8, 2023
cb57500
Fix code blocks containing only newlines
Crozzers Apr 8, 2023
934e937
Update changes.md
Crozzers Apr 8, 2023
e0a7d72
Merge branch 'master' into fix-505
Crozzers Apr 8, 2023
d657fca
Merge pull request #506 from Crozzers/fix-505
nicholasserra Apr 10, 2023
01a98a1
Merge branch 'master' into fix-link-patterns-issue287
nicholasserra Apr 10, 2023
bce3f18
Merge pull request #501 from Crozzers/fix-link-patterns-issue287
nicholasserra Apr 11, 2023
c939125
Fix #508
Crozzers Apr 26, 2023
e0fea56
Update #508 test
Crozzers Apr 26, 2023
e2c1c64
Update changelog
Crozzers Apr 26, 2023
4cf766c
Merge pull request #509 from Crozzers/fix-issue-508
nicholasserra Apr 28, 2023
0fde72b
Remove deprecated imp module
Crozzers Apr 30, 2023
50a9f17
Update changelog
Crozzers Apr 30, 2023
bf3a3fd
Merge pull request #511 from Crozzers/remove-deprecated-imp-module
nicholasserra Apr 30, 2023
3cb4187
Allow link patterns to be specified via extras dict
Crozzers May 25, 2023
731cff1
Update changes.md
Crozzers May 25, 2023
2c092d1
Merge pull request #512 from Crozzers/link-patterns-params
nicholasserra May 28, 2023
50e8f51
add a more general url parser/sanitizer
pknowles May 22, 2023
7690990
Add tests for relative links in safe mode and remove MIT license text…
Crozzers May 29, 2023
2be9f5b
Update changes.md
Crozzers May 29, 2023
4a46040
Update tests for new safe href regex
Crozzers May 29, 2023
cef18e1
Merge pull request #513 from Crozzers/fix-rel-links-in-safe-mode
nicholasserra Jun 4, 2023
d869930
Fix list items losing nesting when following another list
Crozzers Jun 4, 2023
6725ef0
Update `_uniform_indent` to allow more granular control of whitespace…
Crozzers Jun 4, 2023
700ac81
Fix `markdown-in-html` extra not working within lists
Crozzers Jun 4, 2023
da54c21
Expand nested_list test case for recent bug fix
Crozzers Jun 5, 2023
9f6b529
Merge pull request #514 from Crozzers/fix-markdown-in-html-in-list
nicholasserra Jun 22, 2023
349d96a
prepare for 2.4.9 release
nicholasserra Jun 22, 2023
d022ba9
prep for future dev
nicholasserra Jun 22, 2023
e26158c
Merge pull request #459 from Crozzers/clearer-test-warnings
nicholasserra Jun 22, 2023
902353e
Move test warnings to log after test run
nicholasserra Jun 22, 2023
157b4b1
Add bug report issue template
Crozzers Jun 24, 2023
db75745
Merge pull request #516 from Crozzers/issue-template
nicholasserra Jun 27, 2023
7d852be
Allow relative links in safe mode.
Crozzers Jul 2, 2023
b8151a2
Update changes.md
Crozzers Jul 2, 2023
c65cfe0
Fix tests for older python versions
Crozzers Jul 2, 2023
9c6017f
Move relative link handling out of `_safe_protocols` regex.
Crozzers Jul 9, 2023
6c8b1e7
Fix safe href domain regex matching `tel:` protocols
Crozzers Jul 10, 2023
863a3af
Merge pull request #520 from Crozzers/fix-issue-517
nicholasserra Jul 20, 2023
4ea5035
Fix #185 by always restoring hashed html blocks at the end of convers…
Crozzers Jul 22, 2023
3bb99d5
Update `CHANGES.md`
Crozzers Jul 22, 2023
c14e99b
Add `middle-word-em` extra.
Crozzers Jul 23, 2023
2a01d52
Fix middle-word-em not applying when next to word boundary
Crozzers Jul 23, 2023
0615627
Update changes.md
Crozzers Jul 23, 2023
6c5fb43
Merge pull request #522 from Crozzers/middle-word-em
nicholasserra Jul 23, 2023
9bdc064
Merge branch 'master' into fix-issue-185
nicholasserra Jul 23, 2023
c18de16
Merge pull request #521 from Crozzers/fix-issue-185
nicholasserra Jul 23, 2023
2b85b82
prepare for 2.4.10 release
nicholasserra Jul 25, 2023
9272f9a
prep for future dev
nicholasserra Jul 25, 2023
784bad2
Fix angles being escaped in style blocks
Crozzers Aug 13, 2023
35bdcd4
Update CHANGES.md
Crozzers Aug 13, 2023
c94e417
Merge pull request #524 from Crozzers/fix-issue-523
nicholasserra Aug 14, 2023
a87cb74
Allow base64 image data URLs when operating in safe mode
Crozzers Aug 26, 2023
a2bab99
Update CHANGES.md
Crozzers Aug 26, 2023
e2a595c
Add `breaks` extra with ability to hard break on backslashes.
Crozzers Sep 5, 2023
f25bc21
Update changes.md
Crozzers Sep 5, 2023
2ef5653
Merge pull request #527 from Crozzers/fix-base64-images
nicholasserra Sep 12, 2023
cda1e70
Merge branch 'master' into break-on-backslash
nicholasserra Sep 19, 2023
d61a7e1
Merge pull request #529 from Crozzers/break-on-backslash
nicholasserra Sep 19, 2023
0eafad6
Remove requirement for third party regex library
Crozzers Sep 24, 2023
c88dd6e
Merge branch 'master' into repair_ReDoS
Crozzers Sep 24, 2023
191b660
Merge pull request #531 from Crozzers/repair_ReDoS
nicholasserra Oct 9, 2023
78b6139
Fix #493 persisting when `code-friendly` extra enabled due to regex o…
Crozzers Oct 18, 2023
085e8a2
Update changes.md
Crozzers Oct 18, 2023
958eea4
Merge pull request #532 from Crozzers/fix-code-friendly-specific-redos
nicholasserra Oct 20, 2023
c09c744
Update `_slugify` to use utf-8 encoding
Crozzers Nov 9, 2023
756e024
Update changelog
Crozzers Nov 9, 2023
b15d37d
Merge pull request #535 from Crozzers/fix-non-ascii-header-ids
nicholasserra Nov 9, 2023
51de596
Maintain order of appearance in footnotes
Crozzers Nov 12, 2023
d83c2ae
Update changelog
Crozzers Nov 12, 2023
182b7f5
Merge pull request #536 from Crozzers/footnote-order-of-appearance
nicholasserra Nov 21, 2023
90f3e42
Add ability to mix HTML and Markdown headers in `header-ids` extra
Crozzers Nov 26, 2023
5506a52
Append HTML header IDs to TOC
Crozzers Nov 26, 2023
55afcb4
Sort TOC by order of appearance
Crozzers Nov 26, 2023
53b3ccb
Don't manually sort TOC when mixed headers disabled
Crozzers Nov 26, 2023
38485c5
Remove f-string for Python 3.5 compatibility
Crozzers Nov 26, 2023
b93c41e
Update changelog
Crozzers Nov 26, 2023
efd824f
Merge pull request #538 from Crozzers/mixed-header-ids
nicholasserra Dec 1, 2023
53bfe0b
Fix duplicate entries in TOC when using mixed headers
Crozzers Dec 3, 2023
71a7afd
Add mechanism to prevent header ID counter resetting
Crozzers Dec 3, 2023
0b81aa3
Update changelog
Crozzers Dec 3, 2023
6d19f3f
Merge pull request #539 from Crozzers/fix-duplicate-toc-entries
nicholasserra Dec 3, 2023
b123d68
Merge pull request #540 from Crozzers/prevent-header-id-counter-reset
nicholasserra Dec 3, 2023
0fa402c
prepare for 2.4.11 release
nicholasserra Dec 3, 2023
9178066
prep for future dev
nicholasserra Dec 3, 2023
93e7b44
Make tests work on win32
m417z Dec 9, 2023
078f76a
Fix bad handling of consecutive bold words (#541)
Crozzers Dec 9, 2023
f7640b1
Update `markdown-in-html` extra to handle markdown on same line as HTML
Crozzers Dec 9, 2023
b7f73ce
Expand test case for markdown-in-html on same line
Crozzers Dec 9, 2023
6912b63
Update changelog
Crozzers Dec 9, 2023
6f7780c
Fix tables with trailing whitespace not being recognized (#549)
Crozzers Dec 10, 2023
3b3e845
Update changelog
Crozzers Dec 10, 2023
68be7da
Always normalise EOLs in test harness
Crozzers Dec 10, 2023
37ed941
Merge pull request #550 from Crozzers/trailing-table-whitespace
nicholasserra Dec 10, 2023
f7b4535
Merge pull request #551 from Crozzers/normalise-eol-in-test-harness
nicholasserra Dec 10, 2023
f5d0f40
Merge branch 'master' into markdown-in-html-same-line
nicholasserra Dec 10, 2023
f817f0b
Merge pull request #547 from Crozzers/markdown-in-html-same-line
nicholasserra Dec 10, 2023
bef9a20
Merge pull request #543 from m417z/tests-win32
nicholasserra Dec 10, 2023
0fa9739
Merge pull request #545 from Crozzers/fix-consecutive-bold
nicholasserra Dec 10, 2023
7097172
Breaks improvements and code simplification
m417z Dec 9, 2023
4b0f19b
Update changelog for strong-emphasis fix
Dec 11, 2023
c34c957
Merge pull request #553 from fghaas/update-changelog
nicholasserra Dec 11, 2023
cfbc79c
Fix incorrect parsing of links after square brackets
Crozzers Dec 17, 2023
2fb92a9
Update changelog
Crozzers Dec 17, 2023
5ddad68
Merge pull request #556 from Crozzers/fix-issue-552
nicholasserra Dec 17, 2023
d8c6700
prepare for 2.4.12 release
nicholasserra Dec 17, 2023
4fc23d1
prep for future dev
nicholasserra Dec 17, 2023
c5279f6
Allow cuddled tables
Crozzers Dec 24, 2023
0894e2b
Update changelog
Crozzers Dec 24, 2023
ded97d4
Fix `markdown-in-html` not splitting HTML tags into separate lines fo…
Crozzers Dec 24, 2023
c119ef5
Updte changelog
Crozzers Dec 24, 2023
844942a
Merge pull request #559 from Crozzers/cuddled-tables
nicholasserra Dec 26, 2023
0203031
Merge branch 'master' into always-split-markdown-in-html
nicholasserra Dec 26, 2023
b94feac
Merge pull request #560 from Crozzers/always-split-markdown-in-html
nicholasserra Dec 26, 2023
82f2ea6
Fix incomplete comments in safe mode not being escaped
Crozzers Jan 3, 2024
4518c23
Update changelog
Crozzers Jan 3, 2024
bb9d6b4
Merge pull request #564 from Crozzers/incomplete-html-comment-in-safe…
nicholasserra Jan 3, 2024
1c7902b
Merge pull request #544 from m417z/breaks-improvements
nicholasserra Jan 5, 2024
b90d62f
Fix opening HTML tag causing occasionally crashes when `markdown-in-h…
Crozzers Jan 18, 2024
92eb442
Update changelog
Crozzers Jan 18, 2024
3d6ecca
Fix failing test cases
Crozzers Jan 18, 2024
749ee72
Merge pull request #566 from Crozzers/fix-indented-opening-tag-causin…
nicholasserra Jan 23, 2024
74e3f05
prepare for 2.4.13 release
nicholasserra Feb 25, 2024
bee39a8
Merge tag 'tags/2.4.13'
magnified103 Nov 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Report a parsing error, unexpected output and other bugs
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Attach a minimal markdown snippet that causes the bug to occur. This should be placed inside a fenced code block to escape GitHub's formatting.

If your snippet contains fenced code blocks then you can escape them by adding more backticks to the enclosing block. See the [this GitHub article](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks) for an example.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Debug info**
Version of library being used:

Any extras being used:

**Additional context**
Add any other context about the problem here.
10 changes: 7 additions & 3 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [pypy3, 3.5, 3.6, 3.7, 3.8, 3.9]
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
os:
- ubuntu-20.04
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -19,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Pygments>=2.5.2
pip install .[all]
- name: Test
run: |
make testone
119 changes: 118 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,125 @@
# python-markdown2 Changelog

## python-markdown2 2.4.2 (not yet released)
## python-markdown2 2.4.13

- [pull #559] Allow cuddled tables (#557)
- [pull #560] Fix `markdown-in-html` not always splitting HTML tags into separate lines (#558)
- [pull #564] Fix incomplete comments in safe mode not being escaped (#563)
- [pull #566] Fix crash in `markdown-in-html` extra (#565)


## python-markdown2 2.4.12

- [pull #547] Update `markdown-in-html` extra to handle markdown on same line as HTML (#546)
- [pull #550] Fix tables with trailing whitespace not being recognized (#549)
- [pull #545] Fix multiple instances of strong emphasis (`**`) in one line (#541)
- [pull #556] Fix incorrect parsing of links after square brackets (#552)

## python-markdown2 2.4.11

- [pull #524] Fix angles being escaped in style blocks (issue #523)
- [pull #527] Fix base64 images being corrupted in safe mode (issue #526)
- [pull #529] Add `breaks` extra with ability to hard break on backslashes (issue #525)
- [pull #532] Fix #493 persisting when `code-friendly` extra enabled
- [pull #535] Update `_slugify` to use utf-8 encoding (issue #534)
- [pull #536] Maintain order of appearance in footnotes
- [pull #538] Include HTML headers in TOC
- [pull #540] Add mechanism to prevent header ID counter resetting (issue #530)

## python-markdown2 2.4.10

- [pull #520] Allow more relative links in safe mode (issue #517)
- [pull #521] Always restore hashed HTML blocks (issue #185)
- [pull #522] Add `middle-word-em` extra


## python-markdown2 2.4.9

- [pull #500] Add `<thead>` tag to html-classes extra
- [pull #501] Fix link patterns extra matching against internal hashes
- [pull #502] Replace deprecated `optparse` with `argparse`
- [pull #506] Fix `_uniform_outdent` failing with empty strings (issue #505)
- [pull #509] Fix HTML elements not unhashing correctly (issue 508)
- [pull #511] Remove deprecated `imp` module (issue #510)
- [pull #512] Allow link patterns to be passed via extras dict
- [pull #513] Fix relative links not working in safe mode (issue #254)


## python-markdown2 2.4.8

- [pull #499] Fix images not being procesed correctly (#498)


## python-markdown2 2.4.7

- [pull #483] Fix hashing nested HTML blocks
- [pull #486] Fix backslash being unable to escape raw HTML tags
- [pull #482] Add support for telegram spoiler in extras
- [pull #485] mermaid support
- [pull #487] Fix escaping ampersands in hrefs
- [pull #490] Fix indented codeblocks inside fences (#489)
- [pull #490] Remove `code-color` extra


## python-markdown2 2.4.6

- [pull #477] Feature wavedrom support
- [pull #480] Fix mixing ordered and un-ordered lists combining into single list type


## python-markdown2 2.4.5

- [pull #466] Add optional dependencies to `setup.py`


## python-markdown2 2.4.4

- [pull #439] Fix TypeError if html-classes extra is None
- [pull #441] Remove Python2 support
- [pull #445] Replace `<strike>` with `<s>` in strike extra
- [pull #446] Fix link patterns extra applying within links
- [pull #443] create proper entry point
- [pull #449] Codespans inside link text issue344
- [pull #451] Underline and HTML comments
- [pull #453] Links with brackets
- [pull #454] Fix emacs local variable one-liners
- [pull #457] Example of the current mixed-paragraph mode behavior in lists
- [pull #455] Fix code block indentation in lists
- [pull #434] Fix filter bypass leading to XSS (#362)
- [pull #464] Fix html-classes extra not applying to code spans
- [pull #462] Fix pygments block matching
- [pull #462] Fix pyshell blocks in blockquotes
- [pull #463] Fix multilevel lists
- [pull #468] Remove `_uniform_outdent_limit` function
- [pull #470] Add support for ordered lists that don't start at 1. (#469)
- [pull #472] Fix `AssertionError` with lazy numbered lists (issue #471)
- [pull #475] Add `<ul>` and `<ol>` tags to html-classes extra (#352)
- [pull #473] XSS test and fix


## python-markdown2 2.4.3

- [pull #413] Fix meta indentation
- [pull #414] Fix code surrounded by blank lines inside blockquote fenced code blocks
- [pull #417] Fix inline code pipe symbol within tables (issue #399)
- [pull #418] Fix code block parsing error (issue #327)
- [pull #419] Fix hr block created when not supposed to (issue #400)
- [pull #421] Fix backslashes removed by adjacent code blocks (issues #369 and #412)
- [pull #420] Fix md5-* in resulting HTML when several code blocks follow one by one (issue #355)
- [pull #422] Fix excessive `<br>` tags in lists using break-on-newline extra (issue #394)
- [pull #424] Standardize key and value definitions for metadata extra (issue #423)
- [pull #427] Fix fenced code blocks breaking lists (issue #426)
- [pull #429] Fix catastrophic backtracking (Regex DoS) in pyshell blocks.
- [pull #431] Fix incorrect indentation of fenced code blocks within lists
- [pull #436] RST admonitions
- [pull #430] Improve error message if link_patterns forgotten
- [pull #437] fix compatibility with pygments 2.12


## python-markdown2 2.4.2

- [pull #408] Fix for fenced code blocks issue #396
- [pull #410] Be more strict on auto linking urls, RE DOS fix


## python-markdown2 2.4.1
Expand Down
9 changes: 9 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ André Nasturas (github.com/andrenasturas)
Denis Kasak (github.com/dkasak)
Maximilian Hils (github.com/mhils)
BarkeH (github.com/BarkeH)
cav71 (github.com/cav71)
Crozzers (github.com/Crozzers)
Bastian Venthur (https://github.com/venthur), removed Python2 support
gitbra (github.com/gitbra)
Łukasz Langa (github.com/ambv)
Max Omdal (github.com/momja)
Kishore (github.com/jk6521)
Ircama (github.com/Ircama)
Ankit Mahato (github.com/animator)
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ was written to closely match the behaviour of the original Perl-implemented
Markdown.pl. Markdown2 also comes with a number of extensions (called
"extras") for things like syntax coloring, tables, header-ids. See the
"Extra Syntax" section below. "markdown2" supports all Python versions
2.6+ or 3.3+ (and pypy and jython, though I don't frequently test those).
3.5+ (and pypy and jython, though I don't frequently test those).

There is another [Python
markdown.py](https://python-markdown.github.io/). However, at
Expand All @@ -33,6 +33,7 @@ for updates to python-markdown2.
To install it in your Python installation run *one* of the following:

pip install markdown2
pip install markdown2[all] # to install all optional dependencies (eg: Pygments for code syntax highlighting)
pypm install markdown2 # if you use ActivePython (activestate.com/activepython)
easy_install markdown2 # if this is the best you have
python setup.py install
Expand All @@ -48,14 +49,14 @@ As a module:
```python
>>> import markdown2
>>> markdown2.markdown("*boo!*") # or use `html = markdown_path(PATH)`
u'<p><em>boo!</em></p>\n'
'<p><em>boo!</em></p>\n'

>>> from markdown2 import Markdown
>>> markdowner = Markdown()
>>> markdowner.convert("*boo!*")
u'<p><em>boo!</em></p>\n'
'<p><em>boo!</em></p>\n'
>>> markdowner.convert("**boom!**")
u'<p><strong>boom!</strong></p>\n'
'<p><strong>boom!</strong></p>\n'
```
As a script (CLI):
```shell
Expand Down Expand Up @@ -88,7 +89,7 @@ as a script:
```shell
>>> import markdown2
>>> markdown2.markdown("*boo!*", extras=["footnotes"])
u'<p><em>boo!</em></p>\n'
'<p><em>boo!</em></p>\n'
```
There are a number of currently implemented extras for tables, footnotes,
syntax coloring of `<pre>`-blocks, auto-linking patterns, table of contents,
Expand Down
1 change: 0 additions & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
- py3: py2.4 test (broken?)
- add "smarty-pants" extra to wiki
- add "html-classes" extra to wiki
- more on the "code-color" extra wiki page
Expand Down
18 changes: 0 additions & 18 deletions bin/markdown2

This file was deleted.

Loading
Loading