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: frostming/marko
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.2
Choose a base ref
...
head repository: frostming/marko
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.3
Choose a head ref
  • 10 commits
  • 19 files changed
  • 7 contributors

Commits on Apr 17, 2026

  1. feat: allow extension blocks to break a Paragraph (#260)

    * feat: allow extension blocks to break a Paragraph
    
    currently the list of elements that can break a Paragraph is hardwired in the Paragraph implementation.
    
    This PR suggests a new BlockElement property `breaks_paragraph` that allows extensions to define blocks that can also break a paragraph without the need to override the Paragraph `break_paragraph` implementation.
    
    * refactor: improve test
    
    * Apply suggestions from code review
    
    refactor: method return types
    
    Co-authored-by: Frost Ming <mianghong@gmail.com>
    
    ---------
    
    Co-authored-by: Frost Ming <mianghong@gmail.com>
    jothepro and frostming authored Apr 17, 2026
    Configuration menu
    Copy the full SHA
    c0d37df View commit details
    Browse the repository at this point in the history
  2. chore: Update pdm.lock (#258)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Apr 17, 2026
    Configuration menu
    Copy the full SHA
    ea5d5fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a30b4c8 View commit details
    Browse the repository at this point in the history
  4. fix: CVE Vulnerability Report: Cross-Site Scripting (XSS) in marko. F…

    …ixes #257
    
    Signed-off-by: Frost Ming <me@frostming.com>
    frostming committed Apr 17, 2026
    Configuration menu
    Copy the full SHA
    0aaac3f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b0f822b View commit details
    Browse the repository at this point in the history

Commits on May 28, 2026

  1. Minor typing fixes (#264)

    * Remove unused type: ignore directives
    
    * Force using types for objprint
    
    * Add types for pygments
    
    * Fix type-arg typing errors
    
    * Fix redundant-cast typing errors
    
    * Fix NameError in tests
    absolutely-vivid authored May 28, 2026
    Configuration menu
    Copy the full SHA
    2f892b5 View commit details
    Browse the repository at this point in the history
  2. Replace U+0000 with U+FFFD on input per CommonMark §2.3 (#263)

    CommonMark §2.3 ("Insecure characters") requires that literal U+0000
    code points in source be replaced with U+FFFD. Marko's entity-reference
    path already honours this for &#0; / &#x0;, but literal NULs in the
    input were passed straight through to text, code spans, and code blocks.
    
    Add the substitution to _preprocess_text so that all parser/renderer
    paths see a sanitised buffer. Add regression tests covering NUL in
    plain text, code spans, and fenced code blocks.
    gistrec authored May 28, 2026
    Configuration menu
    Copy the full SHA
    15b95ab View commit details
    Browse the repository at this point in the history
  3. chore: Update pdm.lock (#262)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored May 28, 2026
    Configuration menu
    Copy the full SHA
    a11e0b4 View commit details
    Browse the repository at this point in the history
  4. Make _RendererDispatcher fully generic (#265)

    * Make _RendererDispatcher fully generic
    
    By making _RendererDispatcher and the RendererFunc type fully generic,
    the render_dispatch decorator can be strongly typed. This eliminates mypy
    typing errors on method using render_dispatch or _RendererDispatcher,
    provided the method is correctly typed.
    
    * Those were there for a reason
    absolutely-vivid authored May 28, 2026
    Configuration menu
    Copy the full SHA
    e5fa135 View commit details
    Browse the repository at this point in the history
  5. chore: update version to 2.2.3 in changelog and __init__.py

    Signed-off-by: Frost Ming <me@frostming.com>
    frostming committed May 28, 2026
    Configuration menu
    Copy the full SHA
    57e042b View commit details
    Browse the repository at this point in the history
Loading