Skip to content

Commit

Permalink
feat: upgrade to remark 13 (#29678)
Browse files Browse the repository at this point in the history
* chore(gatsby-transformer-remark): ugprade remark-related deps

* tests: update snapshots for ToC

* enable remark-gfm in a backwards compatible way

* gatsby-remark-autolink-headers: bump deps

* gatsby-remark-code-repls: bump deps

* gatsby-remark-copy-linked-files: bump deps

* gatsby-remark-prismjs: bump deps

* gatsby-remark-prismjs: fix breaks

* gatsby-remark-embed-snippet: bump deps and fix breaks

* gatsby-remark-graphviz: bump deps

* gatsby-remark-images: bump deps

* gatsby-remark-images-contentful: bump deps

* gatsby-remark-katex: bump deps

* gatsby-remark-responsive-iframe: bump deps

* gatsby-remark-smartypants: bump deps

* update yarn.lock

* gatsby-remark-prismjs: update snapshots

* gatsby-remark-images-contentful: bump deps

* chore: bump root remark deps

* gatsby-remark-katex: update snapshot

* gatsby-remark-responsive-iframe: update snapshot

* gatsby-remark-autolink-headers: update snapshot

* gatsby-remark-autolink-headers: update snapshot

* gatsby-remark-autolink-headers: fix tests

* gatsby-remark-code-repls: update snapshot

* gatsby-remark-smartypants: update snapshot

* gatsby-remark-custom-blocks: disable plugin tests

There is no version of `remark-custom-blocks` that is compatible with remark v13 yet. See zestedesavoir/zmarkdown#416

* dummy commit for canary

* run prettier and update yarn.lock

* gatsby-transformer-remark: update unified and unist-utils

* gatsby-remark-autolink-headers: correct text in tests

* gatsby-remark-custom-blocks: incompatibility notice
  • Loading branch information
vladar authored Apr 9, 2021
1 parent 172cf4d commit a5b5cf8
Show file tree
Hide file tree
Showing 30 changed files with 685 additions and 585 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
"npm-run-all": "4.1.5",
"plop": "^1.9.1",
"prettier": "2.1.2",
"remark": "^12.0.1",
"remark-cli": "^8.0.1",
"remark-frontmatter": "^2.0.0",
"remark-lint": "^7.0.1",
"remark": "^13.0.0",
"remark-cli": "^9.0.0",
"remark-frontmatter": "^3.0.0",
"remark-lint": "^8.0.0",
"remark-lint-first-heading-level": "^2.0.1",
"remark-lint-no-duplicate-headings-in-section": "^2.0.2",
"remark-lint-no-reference-like-url": "^2.0.1",
"remark-preset-lint-markdown-style-guide": "^3.0.1",
"remark-preset-lint-recommended": "^4.0.1",
"remark-preset-lint-markdown-style-guide": "^4.0.0",
"remark-preset-lint-recommended": "^5.0.0",
"remark-retext": "^4.0.0",
"retext": "^7.0.1",
"retext-diacritics": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-remark-autolink-headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@babel/runtime": "^7.12.5",
"github-slugger": "^1.3.0",
"lodash": "^4.17.21",
"mdast-util-to-string": "^1.1.0",
"unist-util-visit": "^1.4.1"
"mdast-util-to-string": "^2.0.0",
"unist-util-visit": "^2.0.3"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ Object {
"url": "#heading-uno",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -50,13 +49,12 @@ Object {
"id": "heading-uno",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand Down Expand Up @@ -89,13 +87,12 @@ Object {
"url": "#heading-uno",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -117,13 +114,12 @@ Object {
"id": "heading-uno",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand Down Expand Up @@ -156,13 +152,12 @@ Object {
"url": "#heading-uno",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -184,13 +179,12 @@ Object {
"id": "heading-uno",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand All @@ -205,13 +199,12 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header with no ico
Object {
"children": Array [
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -232,13 +225,12 @@ Object {
"id": "heading-uno",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand Down Expand Up @@ -271,13 +263,12 @@ Object {
"url": "#heading-uno",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -299,13 +290,12 @@ Object {
"id": "heading-uno",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand All @@ -320,13 +310,12 @@ exports[`gatsby-remark-autolink-headers adds places anchor after header when isI
Object {
"children": Array [
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand Down Expand Up @@ -366,13 +355,12 @@ Object {
"id": "heading-uno",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand All @@ -387,13 +375,12 @@ exports[`gatsby-remark-autolink-headers does not add data to a markdown heading
Object {
"children": Array [
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -405,13 +392,12 @@ Object {
},
],
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 1,
"offset": 13,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand All @@ -426,13 +412,12 @@ exports[`gatsby-remark-autolink-headers does not add data to a markdown heading
Object {
"children": Array [
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 27,
"line": 1,
"offset": 26,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 1,
Expand All @@ -444,13 +429,12 @@ Object {
},
],
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 27,
"line": 1,
"offset": 26,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 1,
Expand Down Expand Up @@ -483,13 +467,12 @@ Object {
"url": "#Heading-One",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 2,
"offset": 14,
},
"indent": Array [],
"start": Object {
"column": 3,
"line": 2,
Expand All @@ -511,13 +494,12 @@ Object {
"id": "Heading-One",
},
"depth": 1,
"position": Position {
"position": Object {
"end": Object {
"column": 14,
"line": 2,
"offset": 14,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 2,
Expand Down Expand Up @@ -550,13 +532,12 @@ Object {
"url": "#Heading-Two",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 15,
"line": 4,
"offset": 30,
},
"indent": Array [],
"start": Object {
"column": 4,
"line": 4,
Expand All @@ -578,13 +559,12 @@ Object {
"id": "Heading-Two",
},
"depth": 2,
"position": Position {
"position": Object {
"end": Object {
"column": 15,
"line": 4,
"offset": 30,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 4,
Expand Down Expand Up @@ -617,13 +597,12 @@ Object {
"url": "#Heading-Three",
},
Object {
"position": Position {
"position": Object {
"end": Object {
"column": 18,
"line": 6,
"offset": 49,
},
"indent": Array [],
"start": Object {
"column": 5,
"line": 6,
Expand All @@ -645,13 +624,12 @@ Object {
"id": "Heading-Three",
},
"depth": 3,
"position": Position {
"position": Object {
"end": Object {
"column": 18,
"line": 6,
"offset": 49,
},
"indent": Array [],
"start": Object {
"column": 1,
"line": 6,
Expand Down
Loading

0 comments on commit a5b5cf8

Please sign in to comment.