Skip to content

Upstream Commits#1

Open
LoboMetalurgico wants to merge 253 commits into
ProjectAtmos:masterfrom
markdown-it:master
Open

Upstream Commits#1
LoboMetalurgico wants to merge 253 commits into
ProjectAtmos:masterfrom
markdown-it:master

Conversation

@LoboMetalurgico

Copy link
Copy Markdown
Member

No description provided.

rlidwka and others added 30 commits September 11, 2020 19:40
 - table now doesn't deal with backticks at all
 - `|` is considered escaped if and only if there is a `\` character immediately before it
 - number of elements in the first row (thead) now must match second row (aligns) exactly
 - no tbody if it would be empty

close #689
close #697
    ``` javascript {line-numbers=5 highlight=14-17}
    test
    ```

This markup now calls `highlight` like this:

    require('markdown-it')({
      highlight(code, lang, attrs) {
        assert(code === 'test')
        assert(lang === 'javascript')
        assert(attrs === '{line-numbers=5 highlight=14-17}')
      }
    })

close #626
close #706
 - `table`, `tbody`, `tr` now have mapping
 - `th`, `td`, `inline` in tables do not have it

close #705
this is now just raw text:

```md
|
|
|
```

close #724
Fix linkify example code in README
puzrin and others added 30 commits May 25, 2026 06:39
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.14 to 8.0.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.0.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.16
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
A backslash followed by a space was baking that space into the escape
token, so the newline rule saw only one trailing space and emitted a
soft break instead of the mandated hard line break.

Per CommonMark 0.31.2 section 6.1, a backslash before a space is a
literal backslash and the space is not consumed. Leaving the space in
the text stream lets section 6.7 two-space hard-break detection fire.

Input `a\  \nb` (backslash + two trailing spaces) now renders
`<p>a\<br>\nb</p>` instead of `<p>a\ \nb</p>`.
…ark 6.3) (#1188)

A backslash followed by a space inside a link destination is a literal
backslash (a space is not ASCII punctuation, so it is not escaped), and
the space ends the destination. markdown-it instead broke at the
backslash, dropping it from the destination and failing to parse the
link.

Repro:

    md.render('[a](/url\\ )')

Expected (matches the CommonMark 0.31.2 reference renderer):

    <p><a href="/url%5C">a</a></p>

Actual on master:

    <p>[a](/url\ )</p>

In lib/helpers/parse_link_destination.mjs the unenclosed-destination
loop, on seeing `\` followed by a space, called `break`, which excludes
the backslash from the destination and leaves `\ )` unconsumed so the
link fails. Advance past the backslash instead (`pos++; continue`) so it
is kept literal and the following space triggers the normal terminator.

The existing commonmark/commonmark-spec#493 case `[a](a\ b)` is unaffected:
content after the space still prevents the link from parsing, matching
the reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.