Skip to content

Commit

Permalink
fix(upstream): Parser dependency parses invalid nested A improperly (c…
Browse files Browse the repository at this point in the history
…loses #25)
  • Loading branch information
nonara committed Sep 18, 2021
1 parent 8146fca commit bdc7caa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"node": ">=10.0.0"
},
"dependencies": {
"node-html-parser": "^4.1.3"
"node-html-parser": "^4.1.5"
},
"devDependencies": {
"@types/jest": "^27.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/default-tags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe(`Default Tags`, () => {
<!-- see: https://github.com/crosstype/node-html-markdown/issues/25 -->
<a href="${url}">a<a href="2">nested</a><img src="${url}">b</a>
`);
expect(res).toBe(`[a b**c**](${url}) a**b** <${url}> [anested![](${url})b](${url}) `);
expect(res).toBe(`[a b**c**](${url}) a**b** <${url}> [a](${url})[nested](2)![](${url})b `);
});

test(`Image (img)`, () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2970,10 +2970,10 @@ neo-async@^2.6.0:
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==

node-html-parser@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/node-html-parser/-/node-html-parser-4.1.3.tgz#993f42273c97bc0b1171f3c7e4d2f7959defc96a"
integrity sha512-jWFd9TBxDJ0hXkvPKxiWXy4R87ZoIjYj5P2twbef3q/E4vJyFt8TTRQ68ssHYW5Aozwth4SWHOPT6yfDd/gzQQ==
node-html-parser@^4.1.5:
version "4.1.5"
resolved "https://registry.yarnpkg.com/node-html-parser/-/node-html-parser-4.1.5.tgz#e3ff5b39a098e70de3629c9c79c4e29a3fa5f062"
integrity sha512-NLgqUXtftqnBqIjlRjYSaApaqE7TTxfTiH4VqKCjdUJKFOtUzRwney83EHz2qYc0XoxXAkYdmLjENCuZHvsIFg==
dependencies:
css-select "^4.1.3"
he "1.2.0"
Expand Down

0 comments on commit bdc7caa

Please # to comment.