Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: matthewwithanm/python-markdownify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.2.3
Choose a base ref
...
head repository: matthewwithanm/python-markdownify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.2.4
Choose a head ref
  • 15 commits
  • 8 files changed
  • 4 contributors

Commits on Aug 18, 2026

  1. remove borken remnants of Python 2 compatibility

    by using typing, which is a _good_ thing,
    this project cannot be Python2-compatible anymor
    
    $ grep Union -r
    markdownify/__init__.pyi:from typing import Callable, Union
    markdownify/__init__.pyi:    code_language_callback: Union[Callable[[Incomplete], Union[str, None]], None] = ...,
    markdownify/__init__.pyi:    convert: Union[list[str], None] = ...,
    markdownify/__init__.pyi:    strip: Union[list[str], None] = ...,
    markdownify/__init__.pyi:    strip_document: Union[str, None] = ...,
    markdownify/__init__.pyi:    strip_pre: Union[str, None] = ...,
    markdownify/__init__.pyi:    wrap_width: Union[int, None] = ...,
    markdownify/__init__.pyi:        code_language_callback: Union[Callable[[Incomplete], Union[str, None]], None] = ...,
    markdownify/__init__.pyi:        convert: Union[list[str], None] = ...,
    markdownify/__init__.pyi:        strip: Union[list[str], None] = ...,
    markdownify/__init__.pyi:        strip_document: Union[str, None] = ...,
    markdownify/__init__.pyi:        strip_pre: Union[str, None] = ...,
    markdownify/__init__.pyi:        wrap_width: Union[int, None] = ...,
    tests/types.py:from typing import Union
    tests/types.py:def callback(el: BeautifulSoup) -> Union[str, None]:
    a-detiste committed Aug 18, 2026
    Configuration menu
    Copy the full SHA
    aaeed47 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2026

  1. Configuration menu
    Copy the full SHA
    7533a31 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2026

  1. fix: avoid quadratic re_newline_whitespace scan in process_text

    On a run of spaces or tabs with no newline, re.sub retried the pattern
    at every position of the run and each attempt scanned to the end of it,
    so text conversion was quadratic in the run length (64 KiB of spaces
    took about 10 s). A match can only start at the beginning of a
    whitespace run, so anchor it there with a lookbehind: matches are
    unchanged and the scan is linear.
    Chandan3456 committed Nov 7, 2026
    Configuration menu
    Copy the full SHA
    3139871 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. Merge pull request #272 from a-detiste/develop

    remove broken remnants of Python 2 compatibility
    AlexVonB authored Nov 11, 2026
    Configuration menu
    Copy the full SHA
    1bcbde7 View commit details
    Browse the repository at this point in the history
  2. use python 3.16

    AlexVonB committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    5ad0547 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2026

  1. Configuration menu
    Copy the full SHA
    0bac498 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd989ec View commit details
    Browse the repository at this point in the history
  3. Merge pull request #300 from matthewwithanm/python-316

    use python 3.15
    AlexVonB authored Nov 15, 2026
    Configuration menu
    Copy the full SHA
    1971972 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2026

  1. Configuration menu
    Copy the full SHA
    d1b88aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f029a0a View commit details
    Browse the repository at this point in the history
  3. Merge branch 'ac1982-fix-pre-whitespace-performance' into Chandan3456…

    …-newline-whitespace-quadratic
    AlexVonB committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    e3a295a View commit details
    Browse the repository at this point in the history
  4. consolidate whitespace tests

    AlexVonB committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    5db502c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0cb933f View commit details
    Browse the repository at this point in the history
  6. bump to version v1.2.4

    AlexVonB committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    dc6ad25 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'develop'

    AlexVonB committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    e4fbc39 View commit details
    Browse the repository at this point in the history
Loading