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: markedjs/marked
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v18.1.0
Choose a base ref
...
head repository: markedjs/marked
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v18.1.1
Choose a head ref
  • 13 commits
  • 56 files changed
  • 15 contributors

Commits on Oct 6, 2026

  1. Configuration menu
    Copy the full SHA
    0db74cb View commit details
    Browse the repository at this point in the history
  2. fix: keep a decoded character reference from forming a new one (#4111)

    Since numeric references are decoded into the text token, a decoded "&", or
    a decoded character next to a literal "&", can spell a new reference that the
    no-encode escaper leaves alone and the browser decodes again.
    "&" rendered as "&" and displayed "&", and "©"
    displayed "(c)". Escape "&" in text that contains a numeric reference, both
    the decoded ones and the literal ones that do not already start a reference.
    youdie006 authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    6bbac0c View commit details
    Browse the repository at this point in the history
  3. fix(cli): honor an explicitly empty string input (#4113)

    Co-authored-by: Your Name <[email protected]>
    xu91102 and Your Name authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    ec3a4e5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9e64a6a View commit details
    Browse the repository at this point in the history
  5. fix: respect tab stops in list continuation indentation (#4119)

    * fix: respect tab stops in list continuation indentation
    
    * test: move tab-stop regressions to spec fixtures
    GreedyC authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    4bd2528 View commit details
    Browse the repository at this point in the history
  6. fix: make walkTokens linear by appending values in place (#4121)

    * fix: make walkTokens linear by appending values in place
    
    Marked.walkTokens collected callback results with
    `values = values.concat(...)` for every token, copying the whole array
    each time, so parsing with any walkTokens extension took quadratic time
    in document size. Append in place instead, flattening one level like
    concat did, so the returned values are unchanged. The combined
    walkTokens function built in use() gets the same change.
    
    Fixes #4120
    
    * fix: copy walkTokens callback arrays by index like concat
    ikhattab authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    627d9ae View commit details
    Browse the repository at this point in the history
  7. fix: preserve enclosing link state after parsing images (#4123)

    * fix: preserve enclosing link state after parsing images
    
    * test: move image link regression cases to spec fixtures
    
    * test: use standard HTML differ for image link regression
    snooze26h authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    cc07bb9 View commit details
    Browse the repository at this point in the history
  8. perf: avoid repeated raw string copies in nested lists (#4082)

    fix: avoid repeated raw string copies in nested lists
    
    Tokenizer.list() built each item's raw by appending line by line, and the
    list's raw by concatenating its items. src is only ever consumed from the
    front, so both are contiguous spans of the input and can be sliced out of
    it instead. V8 keeps a slice as a view on one backing string rather than a
    fresh copy per list and per item.
    
    Token values are unchanged. On cmark's pathological "deeply nested lists"
    case (500 levels): 222 MB RSS and 135 ms before, 157 MB and 126 ms after.
    
    No change on the CommonMark spec corpus -- the saving is proportional to
    nesting depth, so ordinary documents are unaffected.
    unshorn authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    7e8754d View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2026

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

Commits on Oct 10, 2026

  1. fix: keep a backslash in a code span from hiding emphasis (#4117)

    * fix: keep a backslash in a code span from hiding emphasis
    
    The em/strong mask replaced every backslash escape before it masked
    code spans, but a backslash inside a code span is literal. A code span
    ending in `\` therefore lost its closing backtick in the mask, so the
    next backtick paired with it and the emphasis between them was masked
    out and rendered as literal `_` or `*`.
    
    Mask escapes only outside code spans.
    
    * fix: keep emphasis out of a code span that holds a backtick
    
    ---------
    
    Co-authored-by: breken-ai <[email protected]>
    breken-ai and breken-ai authored Oct 10, 2026
    Configuration menu
    Copy the full SHA
    6a57018 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2026

  1. chore(deps-dev): bump handlebars from 4.7.9 to 4.7.10 (#4133)

    Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.9 to 4.7.10.
    - [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
    - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.10/release-notes.md)
    - [Commits](handlebars-lang/handlebars.js@v4.7.9...v4.7.10)
    
    ---
    updated-dependencies:
    - dependency-name: handlebars
      dependency-version: 4.7.10
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 12, 2026
    Configuration menu
    Copy the full SHA
    699a969 View commit details
    Browse the repository at this point in the history
  2. docs: add AGENTS.md (#4125)

    * docs: add AGENTS.md
    
    * add remove only note
    
    * remove important redundant note
    UziTech authored Oct 12, 2026
    Configuration menu
    Copy the full SHA
    2134976 View commit details
    Browse the repository at this point in the history
  3. chore(release): 18.1.1 [skip ci]

    ## [18.1.1](v18.1.0...v18.1.1) (2026-10-12)
    
    ### Bug Fixes
    
    * **cli:** honor an explicitly empty string input ([#4113](#4113)) ([ec3a4e5](ec3a4e5))
    * end blockquote before a lazy line after a heading, hr or html block ([#4115](#4115)) ([9e64a6a](9e64a6a))
    * keep a backslash in a code span from hiding emphasis ([#4117](#4117)) ([6a57018](6a57018))
    * keep a decoded character reference from forming a new one ([#4111](#4111)) ([6bbac0c](6bbac0c)), closes [#38](#38) [#112](#112)
    * let indented and type 3-5 html blocks interrupt a paragraph ([#4124](#4124)) ([eaa1fff](eaa1fff))
    * make walkTokens linear by appending values in place ([#4121](#4121)) ([627d9ae](627d9ae)), closes [#4120](#4120)
    * match pre, script, style and textarea as whole tag names ([#4114](#4114)) ([0db74cb](0db74cb))
    * preserve enclosing link state after parsing images ([#4123](#4123)) ([cc07bb9](cc07bb9))
    * respect tab stops in list continuation indentation ([#4119](#4119)) ([4bd2528](4bd2528))
    
    ### Performance Improvements
    
    * avoid repeated raw string copies in nested lists ([#4082](#4082)) ([7e8754d](7e8754d))
    semantic-release-bot committed Oct 12, 2026
    Configuration menu
    Copy the full SHA
    cdbdc01 View commit details
    Browse the repository at this point in the history
Loading