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: Python-Markdown/markdown
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.5.2
Choose a base ref
...
head repository: Python-Markdown/markdown
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.6
Choose a head ref
  • 11 commits
  • 22 files changed
  • 4 contributors

Commits on Jan 14, 2024

  1. MANIFEST.in: Include scripts/*.py in the generated source tarball

    These scripts are needed for building the documentation.
    mitya57 authored and waylan committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    6425ffc View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Configuration menu
    Copy the full SHA
    91f9a12 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2effd6 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Update the license template so GitHub can detect it

    The license remains BSD 3-Clause but with a better known text
    oprypin authored and waylan committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    ea92856 View commit details
    Browse the repository at this point in the history
  2. Ensure lines after heading in loose list are properly detabbed

    This is a weird edge case. Normally, detabbing would be handled by
    the `ListIndentProcessor`. However, in this one case, that class's
    `get_level` method would need to return a different result than in
    any other case. As there is no way to easily determine this specific
    case from that class, we make the adjustment directly in the
    `HashHeaderProcessor` class. Fixes #1433.
    waylan authored Jan 29, 2024
    Configuration menu
    Copy the full SHA
    c334a3e View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Give smarty tree processor higher priority than toc

    And add a test for using smarty in ToC headers.
    
    Fixes #1438.
    mitya57 authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    421f1e8 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

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

Commits on Mar 8, 2024

  1. Refactor TOC sanitation

    * All postprocessors are run on heading content.
    * Footnote references are stripped from heading content. Fixes #660.
    * A more robust `striptags` is provided to convert headings to plain text.
      Unlike, the `markupsafe` implementation, HTML entities are not unescaped.
    * The plain text `name`, rich `html` and unescaped raw `data-toc-label` are
      saved to `toc_tokens`, allowing users to access the full rich text content of
      the headings directly from `toc_tokens`.
    * `data-toc-label` is sanitized separate from heading content.
    * A `html.unescape` call is made just prior to calling `slugify` so that
      `slugify` only operates on Unicode characters. Note that `html.unescape` is
      not run on the `name` or `html`.
    * The `get_name` and `stashedHTML2text` functions defined in the `toc` extension
      are both **deprecated**. Instead, use some combination of `run_postprocessors`,
      `render_inner_html` and `striptags`.
    
    Co-authored-by: Oleh Prypin <[email protected]>
    waylan and oprypin authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    e4ab4a6 View commit details
    Browse the repository at this point in the history
  2. Refactor abbr escaping

    A alternate fix to #1444. This does not exclude the use of carrots or square 
    brackets in abbreviations. It still excludes backslashse, however. I played
    with backslashes and it just doesn't make sense to support them as they 
    have special meaning in the Markdown, not because of their use in regular
    expressions.
    waylan authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    9edba85 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Allow attr_list quoted values to contain curly braces

    How it worked before:
    
      * Extract the content without allowing any `}` in it, and require that it ends with `}` - for block elements anchored to the end of the line, otherwise not.
      * Parse the content in more detail. No edge cases with `}` can arise. If parsing is interrupted by some unrecognized token, discard the rest of the string.
    
    How it works now:
    
      * Extract the content *and allow* `}` in it, and require that it ends with `}` - for block elements it's anchored to the end of the line, otherwise not.
      * Parse the content in more detail. Allow `}` only within the quoted parts, otherwise interrupt parsing like for any other unrecognized token.
        If parsing is interrupted, there is remaining unrecognized text. Ideally perhaps we would bail out at this point entirely (and not recognize it as an attr_list), but to preserve historic behavior, any extra text before `}` is just discarded.
        If there is an extra `}` in the remaining text:
          * For block elements: that must mean that the attr_list syntax did not in fact terminate at the end of the line but earlier. So, bail out and do not register any attributes and do not change the original text.
          * For inline elements: that must mean that we just overmatched a bit, but that's OK, we just assign attrs as normal and put the extra text back into the string. As mentioned, any extra text *before* `}` is just discarded.
    oprypin authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    3d8afc6 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Bump version to 3.6

    waylan authored Mar 14, 2024
    Configuration menu
    Copy the full SHA
    e524b8f View commit details
    Browse the repository at this point in the history
Loading