Skip to content

Commit

Permalink
fix: use latest mdast-utils-gridtables
Browse files Browse the repository at this point in the history
fixes #230
  • Loading branch information
tripodsan committed Jun 28, 2023
1 parent 3768689 commit 0970d5f
Show file tree
Hide file tree
Showing 7 changed files with 1,393 additions and 15,174 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,8 @@
module.exports = {
root: true,
extends: '@adobe/helix',
env: {
node: true,
es6: true,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 13,
},
rules: {
'import/extensions': [2, 'ignorePackages'],
'import/prefer-default-export': 0,
},
globals: {
__rootdir: true,
__testdir: true,
},
plugins: ['import'],
settings: {
'import/resolver': {
exports: {},
},
},
};
16,508 changes: 1,368 additions & 15,140 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"dependencies": {
"@adobe/fetch": "4.0.13",
"@adobe/helix-admin-support": "2.1.24",
"@adobe/helix-markdown-support": "6.1.2",
"@adobe/helix-markdown-support": "6.1.3",
"@adobe/helix-mediahandler": "2.2.2",
"@adobe/helix-shared-body-data": "2.0.1",
"@adobe/helix-shared-process-queue": "3.0.0",
"@adobe/helix-shared-utils": "3.0.0",
"@adobe/helix-shared-wrap": "2.0.0",
"@adobe/helix-status": "10.0.9",
"@adobe/remark-gridtables": "1.0.2",
"@adobe/remark-gridtables": "1.0.4",
"hast-util-select": "5.0.5",
"hast-util-to-mdast": "9.0.0",
"hast-util-to-string": "2.0.0",
Expand Down
20 changes: 10 additions & 10 deletions test/fixtures/codeblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
| |
| ```bash |
| "cloudName": "AzureCloud", |
| "homeTenantId": <This value is not needed>, |
| "id": <This is the subscription ID>, |
| "isDefault": true, |
| "managedByTenants": [], |
| "name": "Azure", |
| "state": "Enabled", |
| "tenantId": <This is the tenant ID>, |
| "user": { |
| "name": "[email protected]", |
| "type": "user" |
| "homeTenantId": <This value is not needed>, |
| "id": <This is the subscription ID>, |
| "isDefault": true, |
| "managedByTenants": [], |
| "name": "Azure", |
| "state": "Enabled", |
| "tenantId": <This is the tenant ID>, |
| "user": { |
| "name": "[email protected]", |
| "type": "user" |
| } |
| ``` |
+---------------------------------------------------------------------------------------------------------------------------------------------------+
3 changes: 3 additions & 0 deletions test/fixtures/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ <h1>Hello, World.</h1>
<picture>
<img src="relative.png">
</picture>
<picture>
<img src="/missing.png">
</picture>
<picture>
<img src="data:foobar">
</picture>
Expand Down
8 changes: 6 additions & 2 deletions test/fixtures/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

![][image2]

![][image3]

---

+-------------------------------------+
Expand All @@ -20,6 +22,8 @@

[image0]: https://main--repo--owner.hlx.page/media_1c2e2c6c049ccf4b583431e14919687f3a39cc227.png#width=300&height=300

[image1]: data:foobar
[image1]: about:error

[image2]: data:foobar

[image2]: about:blank
[image3]: about:blank
6 changes: 4 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ describe('Index Tests', () => {
.get('/blog/relative.png')
.replyWithFile(200, testImagePath, {
'content-type': 'image/png',
});
})
.get('/missing.png')
.reply(404);
nock('https://dummyimage.com')
.get('/300.png')
.replyWithFile(200, testImagePath, {
Expand All @@ -103,7 +105,7 @@ describe('Index Tests', () => {
assert.strictEqual((await result.text()).trim(), expected.trim());
assert.deepStrictEqual(result.headers.plain(), {
'cache-control': 'no-store, private, must-revalidate',
'content-length': '452',
'content-length': '488',
'content-type': 'text/markdown; charset=utf-8',
'last-modified': 'Sat, 22 Feb 2031 15:28:00 GMT',
'x-source-location': 'https://www.example.com/blog/article',
Expand Down

0 comments on commit 0970d5f

Please sign in to comment.