From a360619cd7a1264070790b9978f60d96050e8f83 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 00:17:07 +0700 Subject: [PATCH 01/32] chore(gatsby-transformer-remark): ugprade remark-related deps --- .../gatsby-transformer-remark/package.json | 18 +- yarn.lock | 195 +++++++++++------- 2 files changed, 135 insertions(+), 78 deletions(-) diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index eec7544624245..7756465dc45b4 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -11,16 +11,16 @@ "bluebird": "^3.7.2", "gatsby-core-utils": "^2.0.0-next.1", "gray-matter": "^4.0.2", - "hast-util-raw": "^4.0.0", - "hast-util-to-html": "^4.0.1", + "hast-util-raw": "^6.0.2", + "hast-util-to-html": "^7.1.2", "lodash": "^4.17.20", - "mdast-util-to-hast": "^3.0.4", - "mdast-util-to-string": "^1.1.0", - "mdast-util-toc": "^5.0", - "remark": "^10.0.1", - "remark-parse": "^6.0.3", - "remark-retext": "^3.1.3", - "remark-stringify": "6.0.4", + "mdast-util-to-hast": "^10.2.0", + "mdast-util-to-string": "^2.0.0", + "mdast-util-toc": "^5.1.0", + "remark": "^13.0.0", + "remark-parse": "^9.0.0", + "remark-retext": "^4.0.0", + "remark-stringify": "^9.0.1", "retext-english": "^3.0.4", "sanitize-html": "^1.27.5", "underscore.string": "^3.3.5", diff --git a/yarn.lock b/yarn.lock index 6882ed52e7861..929b2430b529a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7503,7 +7503,7 @@ caw@^2.0.0, caw@^2.0.1: tunnel-agent "^0.6.0" url-to-options "^1.0.1" -ccount@^1.0.0, ccount@^1.0.3: +ccount@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.3.tgz#f1cec43f332e2ea5a569fd46f9f5bde4e6102aff" @@ -13298,27 +13298,6 @@ hast-to-hyperscript@9.0.0, hast-to-hyperscript@^9.0.0: unist-util-is "^4.0.0" web-namespaces "^1.0.0" -hast-to-hyperscript@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-5.0.0.tgz#5106cbba78edb7c95e2e8a49079371eb196c1ced" - dependencies: - comma-separated-tokens "^1.0.0" - property-information "^4.0.0" - space-separated-tokens "^1.0.0" - style-to-object "^0.2.1" - unist-util-is "^2.0.0" - web-namespaces "^1.1.2" - -hast-util-from-parse5@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-4.0.2.tgz#b7164a7ffc88da4f751dc7c2f801ff8d7c143bab" - dependencies: - ccount "^1.0.3" - hastscript "^4.0.0" - property-information "^4.0.0" - web-namespaces "^1.1.2" - xtend "^4.0.1" - hast-util-from-parse5@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-6.0.0.tgz#b38793c81e1a99f5fd592a4a88fc2731dccd0f30" @@ -13355,17 +13334,20 @@ hast-util-raw@6.0.0: xtend "^4.0.0" zwitch "^1.0.0" -hast-util-raw@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/hast-util-raw/-/hast-util-raw-4.0.0.tgz#2dc10c9facd9b810ea6ac51df251e6f87c2ed5b5" +hast-util-raw@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/hast-util-raw/-/hast-util-raw-6.0.2.tgz#0954c44e2e1c03dc5bb44c40ef5eee3185ebeabe" + integrity sha512-m7IlmqO8cytmG3EIMDMXUG8LjO2uyApWcxwL6apsGvikIClgykFg3UYps4rnt4kUpY3j8Mc7ANJ8zW6KPPLb+w== dependencies: - hast-util-from-parse5 "^4.0.2" - hast-util-to-parse5 "^4.0.1" - html-void-elements "^1.0.1" - parse5 "^5.0.0" + "@types/hast" "^2.0.0" + hast-util-from-parse5 "^6.0.0" + hast-util-to-parse5 "^6.0.0" + html-void-elements "^1.0.0" + parse5 "^6.0.0" unist-util-position "^3.0.0" + vfile "^4.0.0" web-namespaces "^1.0.0" - xtend "^4.0.1" + xtend "^4.0.0" zwitch "^1.0.0" hast-util-sanitize@^1.0.0: @@ -13405,15 +13387,21 @@ hast-util-to-html@^6.1.0: unist-util-is "^3.0.0" xtend "^4.0.1" -hast-util-to-parse5@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/hast-util-to-parse5/-/hast-util-to-parse5-4.0.1.tgz#e52534b4bf40dc4e7d0428fcaf6d32bc75c62ee5" +hast-util-to-html@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/hast-util-to-html/-/hast-util-to-html-7.1.2.tgz#db677f0ee483658cea0eecc9dec30aba42b67111" + integrity sha512-pu73bvORzdF6XZgwl9eID/0RjBb/jtRfoGRRSykpR1+o9rCdiAHpgkSukZsQBRlIqMg6ylAcd7F0F7myJUb09Q== dependencies: - hast-to-hyperscript "^5.0.0" - property-information "^4.0.0" - web-namespaces "^1.0.0" - xtend "^4.0.1" - zwitch "^1.0.0" + ccount "^1.0.0" + comma-separated-tokens "^1.0.0" + hast-util-is-element "^1.0.0" + hast-util-whitespace "^1.0.0" + html-void-elements "^1.0.0" + property-information "^5.0.0" + space-separated-tokens "^1.0.0" + stringify-entities "^3.0.1" + unist-util-is "^4.0.0" + xtend "^4.0.0" hast-util-to-parse5@^6.0.0: version "6.0.0" @@ -13430,15 +13418,6 @@ hast-util-whitespace@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/hast-util-whitespace/-/hast-util-whitespace-1.0.1.tgz#d67da2c87637b1ce1d85dd15b270ba057930149a" -hastscript@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-4.1.0.tgz#ea5593fa6f6709101fc790ced818393ddaa045ce" - dependencies: - comma-separated-tokens "^1.0.0" - hast-util-parse-selector "^2.2.0" - property-information "^4.0.0" - space-separated-tokens "^1.0.0" - hastscript@^5.0.0: version "5.1.0" resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-5.1.0.tgz#a19b3cca6a26a2bcd0f1b1eac574af9427c1c7df" @@ -13649,7 +13628,7 @@ html-to-react@^1.3.4: lodash.camelcase "^4.3.0" ramda "^0.27" -html-void-elements@^1.0.0, html-void-elements@^1.0.1: +html-void-elements@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-1.0.3.tgz#956707dbecd10cf658c92c5d27fee763aa6aa982" @@ -16903,6 +16882,11 @@ loglevel@^1.6.8: resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.8.tgz#8a25fb75d092230ecd4457270d80b54e28011171" integrity sha512-bsU7+gc9AJ2SqpzxwU3+1fedl8zAntbtC5XYlt3s2j1hJcn2PsXSmgN8TaLG/J1/2mod4+cE/3vNL70/c1RNCA== +longest-streak@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" + integrity sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg== + longest-streak@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.2.tgz#2421b6ba939a443bb9ffebf596585a50b4c38e2e" @@ -17286,6 +17270,24 @@ mdast-util-definitions@^3.0.0: dependencies: unist-util-visit "^2.0.0" +mdast-util-definitions@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz#c5c1a84db799173b4dcf7643cda999e440c24db2" + integrity sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ== + dependencies: + unist-util-visit "^2.0.0" + +mdast-util-from-markdown@^0.8.0: + version "0.8.5" + resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz#d1ef2ca42bc377ecb0463a987910dae89bd9a28c" + integrity sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-string "^2.0.0" + micromark "~2.11.0" + parse-entities "^2.0.0" + unist-util-stringify-position "^2.0.0" + mdast-util-heading-style@^1.0.2: version "1.0.6" resolved "https://registry.yarnpkg.com/mdast-util-heading-style/-/mdast-util-heading-style-1.0.6.tgz#6410418926fd5673d40f519406b35d17da10e3c5" @@ -17314,6 +17316,20 @@ mdast-util-to-hast@9.1.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" +mdast-util-to-hast@^10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-10.2.0.tgz#61875526a017d8857b71abc9333942700b2d3604" + integrity sha512-JoPBfJ3gBnHZ18icCwHR50orC9kNH81tiR1gs01D8Q5YpV6adHNO9nKNuFBCJQ941/32PT1a63UF/DitmS3amQ== + dependencies: + "@types/mdast" "^3.0.0" + "@types/unist" "^2.0.0" + mdast-util-definitions "^4.0.0" + mdurl "^1.0.0" + unist-builder "^2.0.0" + unist-util-generated "^1.0.0" + unist-util-position "^3.0.0" + unist-util-visit "^2.0.0" + mdast-util-to-hast@^3.0.0, mdast-util-to-hast@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-3.0.4.tgz#132001b266031192348d3366a6b011f28e54dc40" @@ -17348,6 +17364,18 @@ mdast-util-to-hast@^6.0.2: unist-util-visit "^1.1.0" xtend "^4.0.1" +mdast-util-to-markdown@^0.6.0: + version "0.6.5" + resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz#b33f67ca820d69e6cc527a93d4039249b504bebe" + integrity sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ== + dependencies: + "@types/unist" "^2.0.0" + longest-streak "^2.0.0" + mdast-util-to-string "^2.0.0" + parse-entities "^2.0.0" + repeat-string "^1.0.0" + zwitch "^1.0.0" + mdast-util-to-nlcst@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/mdast-util-to-nlcst/-/mdast-util-to-nlcst-3.2.0.tgz#dad262857658d1eab4b5814a20e2f93d7ca1e3b6" @@ -17372,6 +17400,11 @@ mdast-util-to-string@^1.0.0, mdast-util-to-string@^1.0.2, mdast-util-to-string@^ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz#27055500103f51637bd07d01da01eb1967a43527" integrity sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A== +mdast-util-to-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b" + integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w== + mdast-util-toc@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/mdast-util-toc/-/mdast-util-toc-2.1.0.tgz#82b6b218577bb0e67b23abf5c3f7ac73a4b5389f" @@ -17390,16 +17423,16 @@ mdast-util-toc@^3.1.0: unist-util-is "^2.1.2" unist-util-visit "^1.1.0" -mdast-util-toc@^5.0: - version "5.0.3" - resolved "https://registry.yarnpkg.com/mdast-util-toc/-/mdast-util-toc-5.0.3.tgz#5fb1503e3655688929d596799a6910cc6548e420" - integrity sha512-A3xzcgC1XFHK0+abFmbINOxjwo7Bi0Nsfp3yTgTy5JHo2q2V6YZ5BVJreDWoK3szcLlSMvHqe8WPbjY50wAkow== +mdast-util-toc@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/mdast-util-toc/-/mdast-util-toc-5.1.0.tgz#3af0f9c9a764b993538af03f1f79f4e3cec22736" + integrity sha512-csimbRIVkiqc+PpFeKDGQ/Ck2N4f9FYH3zzBMMJzcxoKL8m+cM0n94xXm0I9eaxHnKdY9n145SGTdyJC7i273g== dependencies: "@types/mdast" "^3.0.3" "@types/unist" "^2.0.3" extend "^3.0.2" github-slugger "^1.2.1" - mdast-util-to-string "^1.0.5" + mdast-util-to-string "^2.0.0" unist-util-is "^4.0.0" unist-util-visit "^2.0.0" @@ -17633,6 +17666,14 @@ microevent.ts@~0.1.1: resolved "https://registry.yarnpkg.com/microevent.ts/-/microevent.ts-0.1.1.tgz#70b09b83f43df5172d0205a63025bce0f7357fa0" integrity sha512-jo1OfR4TaEwd5HOrt5+tAZ9mqT4jmpNAusXtyfNzqVm9uiSYFZlKM1wYL4oU7azZW/PxQW53wM0S6OR1JHNa2g== +micromark@~2.11.0: + version "2.11.4" + resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" + integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA== + dependencies: + debug "^4.0.0" + parse-entities "^2.0.0" + micromatch@^2.1.5, micromatch@^2.3.11: version "2.3.11" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" @@ -19530,7 +19571,7 @@ parse5@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" -parse5@5.1.0, parse5@^5.0.0: +parse5@5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2" @@ -22399,6 +22440,13 @@ remark-parse@^6.0.0, remark-parse@^6.0.3: vfile-location "^2.0.0" xtend "^4.0.1" +remark-parse@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-9.0.0.tgz#4d20a299665880e4f4af5d90b7c7b8a935853640" + integrity sha512-geKatMwSzEXKHuzBNU1z676sGcDcFoChMK38TgdHJNAYfFtsfHDQG7MoJAjs6sgYMqyLduCYWDIWZIxiPeafEw== + dependencies: + mdast-util-from-markdown "^0.8.0" + remark-preset-lint-markdown-style-guide@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/remark-preset-lint-markdown-style-guide/-/remark-preset-lint-markdown-style-guide-3.0.1.tgz#7f160e2ded777bfb14d544e9f72c6873bdfb6da3" @@ -22508,9 +22556,9 @@ remark-squeeze-paragraphs@4.0.0: dependencies: mdast-squeeze-paragraphs "^4.0.0" -remark-stringify@6.0.4, remark-stringify@^6.0.0: - version "6.0.4" - resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-6.0.4.tgz#16ac229d4d1593249018663c7bddf28aafc4e088" +remark-stringify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-5.0.0.tgz#336d3a4d4a6a3390d933eeba62e8de4bd280afba" dependencies: ccount "^1.0.0" is-alphanumeric "^1.0.0" @@ -22527,9 +22575,9 @@ remark-stringify@6.0.4, remark-stringify@^6.0.0: unherit "^1.0.4" xtend "^4.0.1" -remark-stringify@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-5.0.0.tgz#336d3a4d4a6a3390d933eeba62e8de4bd280afba" +remark-stringify@^6.0.0: + version "6.0.4" + resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-6.0.4.tgz#16ac229d4d1593249018663c7bddf28aafc4e088" dependencies: ccount "^1.0.0" is-alphanumeric "^1.0.0" @@ -22566,6 +22614,13 @@ remark-stringify@^8.0.0, remark-stringify@^8.1.0: unherit "^1.0.4" xtend "^4.0.1" +remark-stringify@^9.0.0, remark-stringify@^9.0.1: + version "9.0.1" + resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-9.0.1.tgz#576d06e910548b0a7191a71f27b33f1218862894" + integrity sha512-mWmNg3ZtESvZS8fv5PTvaPckdL4iNlCHTt8/e/8oN08nArHRHjNZMKzA/YW3+p7/lYqIw4nx1XsjCBo/AxNChg== + dependencies: + mdast-util-to-markdown "^0.6.0" + remark-toc@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/remark-toc/-/remark-toc-5.0.0.tgz#f1e13ed11062ad4d102b02e70168bd85015bf129" @@ -22590,6 +22645,15 @@ remark@^12.0.0, remark@^12.0.1: remark-stringify "^8.0.0" unified "^9.0.0" +remark@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/remark/-/remark-13.0.0.tgz#d15d9bf71a402f40287ebe36067b66d54868e425" + integrity sha512-HDz1+IKGtOyWN+QgBiAT0kn+2s6ovOxHyPAFGKVE81VSzJ+mq7RwHFledEvB5F1p4iJvOah/LOKdFuzvRnNLCA== + dependencies: + remark-parse "^9.0.0" + remark-stringify "^9.0.0" + unified "^9.1.0" + remark@^9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/remark/-/remark-9.0.0.tgz#c5cfa8ec535c73a67c4b0f12bfdbd3a67d8b2f60" @@ -24712,13 +24776,6 @@ style-to-object@0.3.0, style-to-object@^0.3.0: dependencies: inline-style-parser "0.1.1" -style-to-object@^0.2.1: - version "0.2.3" - resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-0.2.3.tgz#afcf42bc03846b1e311880c55632a26ad2780bcb" - integrity sha512-1d/k4EY2N7jVLOqf2j04dTc37TPOv/hHxZmvpg8Pdh8UYydxeu/C1W1U4vD8alzf5V2Gt7rLsmkr4dxAlDm9ng== - dependencies: - inline-style-parser "0.1.1" - styled-system@^5.0.0, styled-system@^5.1.5: version "5.1.5" resolved "https://registry.yarnpkg.com/styled-system/-/styled-system-5.1.5.tgz#e362d73e1dbb5641a2fd749a6eba1263dc85075e" @@ -25999,7 +26056,7 @@ unified@9.1.0: trough "^1.0.0" vfile "^4.0.0" -unified@9.2.0, unified@^9.0.0, unified@^9.2.0: +unified@9.2.0, unified@^9.0.0, unified@^9.1.0, unified@^9.2.0: version "9.2.0" resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.0.tgz#67a62c627c40589edebbf60f53edfd4d822027f8" integrity sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg== @@ -26910,7 +26967,7 @@ wcwidth@^1.0.0: dependencies: defaults "^1.0.3" -web-namespaces@^1.0.0, web-namespaces@^1.1.2: +web-namespaces@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-1.1.2.tgz#c8dc267ab639505276bae19e129dbd6ae72b22b4" From 24f7bf9430e36123b648746f796bb521225ed476 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 02:28:50 +0700 Subject: [PATCH 02/32] tests: update snapshots for ToC --- .../src/__tests__/__snapshots__/extend-node.js.snap | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-transformer-remark/src/__tests__/__snapshots__/extend-node.js.snap b/packages/gatsby-transformer-remark/src/__tests__/__snapshots__/extend-node.js.snap index 07927c69c3a1b..7dfbb28bbe057 100644 --- a/packages/gatsby-transformer-remark/src/__tests__/__snapshots__/extend-node.js.snap +++ b/packages/gatsby-transformer-remark/src/__tests__/__snapshots__/extend-node.js.snap @@ -631,7 +631,9 @@ Object {
  • second title
  • -
  • third title
  • +
  • +

    third title

    +
  • ", } `; @@ -648,7 +650,9 @@ Object {
  • second title
  • -
  • third title
  • +
  • +

    third title

    +
  • ", } `; From 9ea526a060e7cf4c23221b567cd3f87b49baad65 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 02:48:02 +0700 Subject: [PATCH 03/32] enable remark-gfm in a backwards compatible way --- .../gatsby-transformer-remark/package.json | 1 + .../src/extend-node-type.js | 7 +- yarn.lock | 108 +++++++++++++++++- 3 files changed, 113 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index 7756465dc45b4..902b7cb5b6ec3 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -18,6 +18,7 @@ "mdast-util-to-string": "^2.0.0", "mdast-util-toc": "^5.1.0", "remark": "^13.0.0", + "remark-gfm": "^1.0.0", "remark-parse": "^9.0.0", "remark-retext": "^4.0.0", "remark-stringify": "^9.0.1", diff --git a/packages/gatsby-transformer-remark/src/extend-node-type.js b/packages/gatsby-transformer-remark/src/extend-node-type.js index 109d1ed0a76af..7a978edb41969 100644 --- a/packages/gatsby-transformer-remark/src/extend-node-type.js +++ b/packages/gatsby-transformer-remark/src/extend-node-type.js @@ -9,6 +9,7 @@ const mdastToString = require(`mdast-util-to-string`) const Promise = require(`bluebird`) const unified = require(`unified`) const parse = require(`remark-parse`) +const remarkGfm = require(`remark-gfm`) const stringify = require(`remark-stringify`) const english = require(`retext-english`) const remark2retext = require(`remark-retext`) @@ -108,7 +109,6 @@ module.exports = function remarkExtendNodeType( const remarkOptions = { commonmark, footnotes, - gfm, pedantic, } if (_.isArray(blocks)) { @@ -116,6 +116,11 @@ module.exports = function remarkExtendNodeType( } let remark = new Remark().data(`settings`, remarkOptions) + if (gfm) { + // TODO: deprecate `gfm` option in favor of explicit remark-gfm as a plugin? + remark = remark.use(remarkGfm) + } + for (let plugin of pluginOptions.plugins) { const requiredPlugin = require(plugin.resolve) if (_.isFunction(requiredPlugin.setParserPlugins)) { diff --git a/yarn.lock b/yarn.lock index 929b2430b529a..8260c62f25fa2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17277,6 +17277,15 @@ mdast-util-definitions@^4.0.0: dependencies: unist-util-visit "^2.0.0" +mdast-util-find-and-replace@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-1.1.1.tgz#b7db1e873f96f66588c321f1363069abf607d1b5" + integrity sha512-9cKl33Y21lyckGzpSmEQnIDjEfeeWelN5s1kUW1LwdB0Fkuq2u+4GdqcGEygYxJE8GVqCl0741bYXHgamfWAZA== + dependencies: + escape-string-regexp "^4.0.0" + unist-util-is "^4.0.0" + unist-util-visit-parents "^3.0.0" + mdast-util-from-markdown@^0.8.0: version "0.8.5" resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz#d1ef2ca42bc377ecb0463a987910dae89bd9a28c" @@ -17288,6 +17297,48 @@ mdast-util-from-markdown@^0.8.0: parse-entities "^2.0.0" unist-util-stringify-position "^2.0.0" +mdast-util-gfm-autolink-literal@^0.1.0: + version "0.1.3" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-0.1.3.tgz#9c4ff399c5ddd2ece40bd3b13e5447d84e385fb7" + integrity sha512-GjmLjWrXg1wqMIO9+ZsRik/s7PLwTaeCHVB7vRxUwLntZc8mzmTsLVr6HW1yLokcnhfURsn5zmSVdi3/xWWu1A== + dependencies: + ccount "^1.0.0" + mdast-util-find-and-replace "^1.1.0" + micromark "^2.11.3" + +mdast-util-gfm-strikethrough@^0.2.0: + version "0.2.3" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-0.2.3.tgz#45eea337b7fff0755a291844fbea79996c322890" + integrity sha512-5OQLXpt6qdbttcDG/UxYY7Yjj3e8P7X16LzvpX8pIQPYJ/C2Z1qFGMmcw+1PZMUM3Z8wt8NRfYTvCni93mgsgA== + dependencies: + mdast-util-to-markdown "^0.6.0" + +mdast-util-gfm-table@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-0.1.6.tgz#af05aeadc8e5ee004eeddfb324b2ad8c029b6ecf" + integrity sha512-j4yDxQ66AJSBwGkbpFEp9uG/LS1tZV3P33fN1gkyRB2LoRL+RR3f76m0HPHaby6F4Z5xr9Fv1URmATlRRUIpRQ== + dependencies: + markdown-table "^2.0.0" + mdast-util-to-markdown "~0.6.0" + +mdast-util-gfm-task-list-item@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-0.1.6.tgz#70c885e6b9f543ddd7e6b41f9703ee55b084af10" + integrity sha512-/d51FFIfPsSmCIRNp7E6pozM9z1GYPIkSy1urQ8s/o4TC22BZ7DqfHFWiqBD23bc7J3vV1Fc9O4QIHBlfuit8A== + dependencies: + mdast-util-to-markdown "~0.6.0" + +mdast-util-gfm@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-0.1.2.tgz#8ecddafe57d266540f6881f5c57ff19725bd351c" + integrity sha512-NNkhDx/qYcuOWB7xHUGWZYVXvjPFFd6afg6/e2g+SV4r9q5XUcCbV4Wfa3DLYIiD+xAEZc6K4MGaE/m0KDcPwQ== + dependencies: + mdast-util-gfm-autolink-literal "^0.1.0" + mdast-util-gfm-strikethrough "^0.2.0" + mdast-util-gfm-table "^0.1.0" + mdast-util-gfm-task-list-item "^0.1.0" + mdast-util-to-markdown "^0.6.1" + mdast-util-heading-style@^1.0.2: version "1.0.6" resolved "https://registry.yarnpkg.com/mdast-util-heading-style/-/mdast-util-heading-style-1.0.6.tgz#6410418926fd5673d40f519406b35d17da10e3c5" @@ -17364,7 +17415,7 @@ mdast-util-to-hast@^6.0.2: unist-util-visit "^1.1.0" xtend "^4.0.1" -mdast-util-to-markdown@^0.6.0: +mdast-util-to-markdown@^0.6.0, mdast-util-to-markdown@^0.6.1, mdast-util-to-markdown@~0.6.0: version "0.6.5" resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz#b33f67ca820d69e6cc527a93d4039249b504bebe" integrity sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ== @@ -17666,7 +17717,52 @@ microevent.ts@~0.1.1: resolved "https://registry.yarnpkg.com/microevent.ts/-/microevent.ts-0.1.1.tgz#70b09b83f43df5172d0205a63025bce0f7357fa0" integrity sha512-jo1OfR4TaEwd5HOrt5+tAZ9mqT4jmpNAusXtyfNzqVm9uiSYFZlKM1wYL4oU7azZW/PxQW53wM0S6OR1JHNa2g== -micromark@~2.11.0: +micromark-extension-gfm-autolink-literal@~0.5.0: + version "0.5.6" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.6.tgz#406a58914d7a9cc6fb4cfafccc61a8ca36d7a12a" + integrity sha512-nHbR1NUOVhmlZNsnhE5B7WJzL7Xd8lc888z4AF27IpHMtO3NstclZmbrMI+AcdTPpO1wuGVwlK1Cnq+n8Sxlrw== + dependencies: + micromark "~2.11.3" + +micromark-extension-gfm-strikethrough@~0.6.0: + version "0.6.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-0.6.3.tgz#b46cc7ee6c21940dd35e46aa49a11a24f92aedd5" + integrity sha512-MKMoP9x2dsr1aeX46ibBwVf4Q6nJsi5aaUFTOMOID5VOLSxwl4CrqUV4OGFQd6AqhtzBJAxaV+N2trlTBtZDNQ== + dependencies: + micromark "~2.11.0" + +micromark-extension-gfm-table@~0.4.0: + version "0.4.2" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-0.4.2.tgz#24384ee9f9af1575295a0adf106d2e93f967a71f" + integrity sha512-AAzmj85XO1ydHYX0Lz52HGhcH2sZLm2AVvkwzELXWgZF6vGdq5yZ3CTByFRsqNUPyQBSIYFKLDAtc6KlnO42aw== + dependencies: + micromark "~2.11.0" + +micromark-extension-gfm-tagfilter@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-0.3.0.tgz#d9f26a65adee984c9ccdd7e182220493562841ad" + integrity sha512-9GU0xBatryXifL//FJH+tAZ6i240xQuFrSL7mYi8f4oZSbc+NvXjkrHemeYP0+L4ZUT+Ptz3b95zhUZnMtoi/Q== + +micromark-extension-gfm-task-list-item@~0.3.0: + version "0.3.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-0.3.3.tgz#d90c755f2533ed55a718129cee11257f136283b8" + integrity sha512-0zvM5iSLKrc/NQl84pZSjGo66aTGd57C1idmlWmE87lkMcXrTxg1uXa/nXomxJytoje9trP0NDLvw4bZ/Z/XCQ== + dependencies: + micromark "~2.11.0" + +micromark-extension-gfm@^0.3.0: + version "0.3.2" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-0.3.2.tgz#def1fa3b743baee88a140a6821e12b09ed832563" + integrity sha512-ToQEpLkRgg7Tp8D3GM/SjZFPV0cCwWNxZmoEVIOQivOswRtPg7gg2WlCrtHhUWFNX+DgDjbq0iLOPGp4Y15oug== + dependencies: + micromark "~2.11.0" + micromark-extension-gfm-autolink-literal "~0.5.0" + micromark-extension-gfm-strikethrough "~0.6.0" + micromark-extension-gfm-table "~0.4.0" + micromark-extension-gfm-tagfilter "~0.3.0" + micromark-extension-gfm-task-list-item "~0.3.0" + +micromark@^2.11.3, micromark@~2.11.0, micromark@~2.11.3: version "2.11.4" resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA== @@ -21756,6 +21852,14 @@ remark-frontmatter@^2.0.0: dependencies: fault "^1.0.1" +remark-gfm@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-1.0.0.tgz#9213643001be3f277da6256464d56fd28c3b3c0d" + integrity sha512-KfexHJCiqvrdBZVbQ6RopMZGwaXz6wFJEfByIuEwGf0arvITHjiKKZ1dpXujjH9KZdm1//XJQwgfnJ3lmXaDPA== + dependencies: + mdast-util-gfm "^0.1.0" + micromark-extension-gfm "^0.3.0" + remark-html@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/remark-html/-/remark-html-8.0.0.tgz#9fcb859a6f3cb40f3ef15402950f1a62ec301b3a" From 045092a175b79cdcb86e94696a25ec6ce00f747d Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 03:36:38 +0700 Subject: [PATCH 04/32] gatsby-remark-autolink-headers: bump deps --- packages/gatsby-remark-autolink-headers/package.json | 4 ++-- yarn.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-remark-autolink-headers/package.json b/packages/gatsby-remark-autolink-headers/package.json index 3a229bd90a1c7..d2001af7c4a2a 100644 --- a/packages/gatsby-remark-autolink-headers/package.json +++ b/packages/gatsby-remark-autolink-headers/package.json @@ -10,8 +10,8 @@ "@babel/runtime": "^7.12.5", "github-slugger": "^1.3.0", "lodash": "^4.17.20", - "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", diff --git a/yarn.lock b/yarn.lock index 8260c62f25fa2..4824a8d4855fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26399,7 +26399,7 @@ unist-util-visit-parents@^3.0.0: "@types/unist" "^2.0.3" unist-util-is "^4.0.0" -unist-util-visit@2.0.3, unist-util-visit@^2.0.0, unist-util-visit@^2.0.2: +unist-util-visit@2.0.3, unist-util-visit@^2.0.0, unist-util-visit@^2.0.2, unist-util-visit@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c" integrity sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q== From 7989fc6c0540637e0975dfd5417f70f9692aad22 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 03:40:44 +0700 Subject: [PATCH 05/32] gatsby-remark-code-repls: bump deps --- .../gatsby-remark-code-repls/package.json | 4 ++-- yarn.lock | 23 ++++++++++++++++--- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/packages/gatsby-remark-code-repls/package.json b/packages/gatsby-remark-code-repls/package.json index 3054c69517f74..2fa51dc6249ba 100644 --- a/packages/gatsby-remark-code-repls/package.json +++ b/packages/gatsby-remark-code-repls/package.json @@ -10,9 +10,9 @@ "@babel/runtime": "^7.12.5", "lz-string": "^1.4.4", "normalize-path": "^3.0.0", - "npm-package-arg": "^6.1.1", + "npm-package-arg": "^8.1.1", "recursive-readdir": "^2.2.2", - "unist-util-map": "^1.0.5", + "unist-util-map": "^2.0.1", "urijs": "^1.19.2" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 4824a8d4855fa..fc3dd0c01c708 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18733,7 +18733,7 @@ npm-normalize-package-bin@^1.0.1: resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== -"npm-package-arg@^4.0.0 || ^5.0.0 || ^6.0.0", npm-package-arg@^6.0.0, npm-package-arg@^6.1.0, npm-package-arg@^6.1.1: +"npm-package-arg@^4.0.0 || ^5.0.0 || ^6.0.0", npm-package-arg@^6.0.0, npm-package-arg@^6.1.0: version "6.1.1" resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-6.1.1.tgz#02168cb0a49a2b75bf988a28698de7b529df5cb7" integrity sha512-qBpssaL3IOZWi5vEKUKW0cO7kzLeT+EQO9W8RsLOZf76KF9E/K9+wH0C7t06HXPpaH8WH5xF1MExLuCwbTqRUg== @@ -18743,6 +18743,15 @@ npm-normalize-package-bin@^1.0.1: semver "^5.6.0" validate-npm-package-name "^3.0.0" +npm-package-arg@^8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-8.1.1.tgz#00ebf16ac395c63318e67ce66780a06db6df1b04" + integrity sha512-CsP95FhWQDwNqiYS+Q0mZ7FAEDytDZAkNxQqea6IaAFJTAY9Lhhqyl0irU/6PMc7BGfUmnsbHcqxJD7XuVM/rg== + dependencies: + hosted-git-info "^3.0.6" + semver "^7.0.0" + validate-npm-package-name "^3.0.0" + npm-packlist@^1.1.6, npm-packlist@^1.4.4: version "1.4.4" resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.4.tgz#866224233850ac534b63d1a6e76050092b5d2f44" @@ -18863,7 +18872,7 @@ oauth-sign@~0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" -object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: +object-assign@^4, object-assign@^4.0.0, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -23662,7 +23671,7 @@ semver@7.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== -semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: +semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: version "7.3.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== @@ -26317,6 +26326,14 @@ unist-util-map@^1.0.5: dependencies: object-assign "^4.0.1" +unist-util-map@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unist-util-map/-/unist-util-map-2.0.1.tgz#c3fca064486d3937c4dad8b39c64974faae7c7c4" + integrity sha512-VdNvk4BQUUU9Rgr8iUOvclHa/iN9O+6Dt66FKij8l9OVezGG37gGWCPU5KSax1R2degqXFvl3kWTkvzL79e9tQ== + dependencies: + "@types/mdast" "^3.0.0" + object-assign "^4.0.0" + unist-util-modify-children@^1.0.0, unist-util-modify-children@^1.1.1: version "1.1.6" resolved "https://registry.yarnpkg.com/unist-util-modify-children/-/unist-util-modify-children-1.1.6.tgz#1587130ca0ab5c56155fa60837ff524c3fbfbfaa" From f72c32e231a80b9285c0c7e16711b6d85fc11694 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 03:49:23 +0700 Subject: [PATCH 06/32] gatsby-remark-copy-linked-files: bump deps --- packages/gatsby-remark-copy-linked-files/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-remark-copy-linked-files/package.json b/packages/gatsby-remark-copy-linked-files/package.json index 9dcb377d888b7..2f0b5002cacf9 100644 --- a/packages/gatsby-remark-copy-linked-files/package.json +++ b/packages/gatsby-remark-copy-linked-files/package.json @@ -14,14 +14,14 @@ "lodash": "^4.17.20", "path-is-inside": "^1.0.2", "probe-image-size": "^6.0.0", - "unist-util-visit": "^1.4.1" + "unist-util-visit": "^2.0.3" }, "devDependencies": { "@babel/cli": "^7.12.1", "@babel/core": "^7.12.3", "babel-preset-gatsby-package": "^1.0.0-next.0", "cross-env": "^7.0.3", - "remark": "^10.0.1", + "remark": "^13.0.0", "remark-mdx": "^1.6.18" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-copy-linked-files#readme", From 27493a1625d96ab573f01ce5082940fc6695e30a Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 03:56:04 +0700 Subject: [PATCH 07/32] gatsby-remark-prismjs: bump deps --- packages/gatsby-remark-prismjs/package.json | 6 +++--- yarn.lock | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-remark-prismjs/package.json b/packages/gatsby-remark-prismjs/package.json index 7356f0be05108..d65aaf31522db 100644 --- a/packages/gatsby-remark-prismjs/package.json +++ b/packages/gatsby-remark-prismjs/package.json @@ -8,8 +8,8 @@ }, "dependencies": { "@babel/runtime": "^7.12.5", - "parse-numeric-range": "^0.0.2", - "unist-util-visit": "^1.4.1" + "parse-numeric-range": "^1.2.0", + "unist-util-visit": "^2.0.3" }, "devDependencies": { "@babel/cli": "^7.12.1", @@ -18,7 +18,7 @@ "cheerio": "^1.0.0-rc.3", "cross-env": "^7.0.3", "prismjs": "^1.21.0", - "remark": "^9.0.0" + "remark": "^13.0.0" }, "peerDependencies": { "gatsby": "^3.0.0-next.0", diff --git a/yarn.lock b/yarn.lock index fc3dd0c01c708..79b08a1b56bd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19641,6 +19641,11 @@ parse-numeric-range@^0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/parse-numeric-range/-/parse-numeric-range-0.0.2.tgz#b4f09d413c7adbcd987f6e9233c7b4b210c938e4" +parse-numeric-range@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/parse-numeric-range/-/parse-numeric-range-1.2.0.tgz#aa70b00f29624ed13e9f943e9461b306e386b0fa" + integrity sha512-1q2tXpAOplPxcl8vrIGPWz1dJxxfmdRkCFcpxxMBerDnGuuHalOWF/xj9L8Nn5XoTUoB/6F0CeQBp2fMgkOYFg== + parse-passwd@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" From 7b1f34f544ec083ad79202ad26691a9602c545b4 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:03:54 +0700 Subject: [PATCH 08/32] gatsby-remark-prismjs: fix breaks --- packages/gatsby-remark-prismjs/src/directives.js | 2 +- packages/gatsby-remark-prismjs/src/parse-options.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/gatsby-remark-prismjs/src/directives.js b/packages/gatsby-remark-prismjs/src/directives.js index 787e8503a07df..eb1b02e89a37f 100644 --- a/packages/gatsby-remark-prismjs/src/directives.js +++ b/packages/gatsby-remark-prismjs/src/directives.js @@ -91,7 +91,7 @@ const parseLine = (line, code, index, actions) => { if (directiveRange) { const strippedDirectiveRange = directiveRange.slice(1, -1) - const range = rangeParser.parse(strippedDirectiveRange) + const range = rangeParser(strippedDirectiveRange) if (range.length > 0) { range.forEach(relativeIndex => { actions.flag(feature, index + relativeIndex, flagSource) diff --git a/packages/gatsby-remark-prismjs/src/parse-options.js b/packages/gatsby-remark-prismjs/src/parse-options.js index 7f76653b96568..ac4ab9faa71dc 100644 --- a/packages/gatsby-remark-prismjs/src/parse-options.js +++ b/packages/gatsby-remark-prismjs/src/parse-options.js @@ -19,8 +19,8 @@ module.exports = language => { let splitOption = option.replace(/ /g, ``).split(`:`) // Test if the option is for line highlighting - if (splitOption.length === 1 && rangeParser.parse(option).length > 0) { - highlightLines = rangeParser.parse(option).filter(n => n > 0) + if (splitOption.length === 1 && rangeParser(option).length > 0) { + highlightLines = rangeParser(option).filter(n => n > 0) } // Test if the option is for line numbering // Option must look like `numberLines: true` or `numberLines: ` @@ -45,9 +45,7 @@ module.exports = language => { promptUserLocal = splitOption[1] } if (splitOption.length === 2 && splitOption[0] === `outputLines`) { - outputLines = rangeParser - .parse(splitOption[1].trim()) - .filter(n => n > 0) + outputLines = rangeParser(splitOption[1].trim()).filter(n => n > 0) } }) From 3fb3f89405015174a0c3e27ee49b0924f84b86ed Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:05:18 +0700 Subject: [PATCH 09/32] gatsby-remark-embed-snippet: bump deps and fix breaks --- packages/gatsby-remark-embed-snippet/package.json | 4 ++-- packages/gatsby-remark-embed-snippet/src/index.js | 2 +- yarn.lock | 4 ---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/gatsby-remark-embed-snippet/package.json b/packages/gatsby-remark-embed-snippet/package.json index a02c948938517..111da079f1112 100644 --- a/packages/gatsby-remark-embed-snippet/package.json +++ b/packages/gatsby-remark-embed-snippet/package.json @@ -9,8 +9,8 @@ "dependencies": { "@babel/runtime": "^7.12.5", "normalize-path": "^3.0.0", - "parse-numeric-range": "^0.0.2", - "unist-util-map": "^1.0.5" + "parse-numeric-range": "^1.2.0", + "unist-util-map": "^2.0.1" }, "devDependencies": { "@babel/cli": "^7.12.1", diff --git a/packages/gatsby-remark-embed-snippet/src/index.js b/packages/gatsby-remark-embed-snippet/src/index.js index 573dbaa2921c5..b10fcbef75ffa 100644 --- a/packages/gatsby-remark-embed-snippet/src/index.js +++ b/packages/gatsby-remark-embed-snippet/src/index.js @@ -59,7 +59,7 @@ module.exports = ({ markdownAST, markdownNode }, { directory } = {}) => { if (range.length === 1) { lines = [Number.parseInt(range, 10)] } else { - lines = rangeParser.parse(range) + lines = rangeParser(range) } // Remove everything after the range prefix from file path snippetPath = snippetPath.slice(0, rangePrefixIndex) diff --git a/yarn.lock b/yarn.lock index 79b08a1b56bd0..a87b1ffbd67d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19637,10 +19637,6 @@ parse-link-header@^1.0.1: dependencies: xtend "~4.0.1" -parse-numeric-range@^0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/parse-numeric-range/-/parse-numeric-range-0.0.2.tgz#b4f09d413c7adbcd987f6e9233c7b4b210c938e4" - parse-numeric-range@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/parse-numeric-range/-/parse-numeric-range-1.2.0.tgz#aa70b00f29624ed13e9f943e9461b306e386b0fa" From 006b0bba3dba48cd3425c923ee31043e524b3f7e Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:10:39 +0700 Subject: [PATCH 10/32] gatsby-remark-graphviz: bump deps --- packages/gatsby-remark-graphviz/package.json | 8 ++++---- yarn.lock | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/gatsby-remark-graphviz/package.json b/packages/gatsby-remark-graphviz/package.json index 8f7a8c1a1cb16..a4687297c8315 100644 --- a/packages/gatsby-remark-graphviz/package.json +++ b/packages/gatsby-remark-graphviz/package.json @@ -9,7 +9,7 @@ "dependencies": { "@babel/runtime": "^7.12.5", "cheerio": "^1.0.0-rc.3", - "unist-util-visit": "^1.4.1", + "unist-util-visit": "^2.0.3", "viz.js": "^2.1.2" }, "devDependencies": { @@ -17,9 +17,9 @@ "@babel/core": "^7.12.3", "babel-preset-gatsby-package": "^1.0.0-next.0", "cross-env": "^7.0.3", - "hast-util-to-html": "^4.0.1", - "mdast-util-to-hast": "^3.0.4", - "remark": "^9.0.0", + "hast-util-to-html": "^7.1.2", + "mdast-util-to-hast": "^10.2.0", + "remark": "^13.0.0", "rimraf": "^3.0.2", "unist-util-find": "^1.0.2" }, diff --git a/yarn.lock b/yarn.lock index a87b1ffbd67d1..dd3fd3ac7a1c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13356,7 +13356,7 @@ hast-util-sanitize@^1.0.0: dependencies: xtend "^4.0.1" -hast-util-to-html@^4.0.0, hast-util-to-html@^4.0.1: +hast-util-to-html@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/hast-util-to-html/-/hast-util-to-html-4.0.1.tgz#3666b05afb62bd69f8f5e6c94db04dea19438e2a" dependencies: @@ -17381,7 +17381,7 @@ mdast-util-to-hast@^10.2.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" -mdast-util-to-hast@^3.0.0, mdast-util-to-hast@^3.0.4: +mdast-util-to-hast@^3.0.0: version "3.0.4" resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-3.0.4.tgz#132001b266031192348d3366a6b011f28e54dc40" integrity sha512-/eIbly2YmyVgpJNo+bFLLMCI1XgolO/Ffowhf+pHDq3X4/V6FntC9sGQCDLM147eTS+uSXv5dRzJyFn+o0tazA== From ef93e7069826b0b825a9f16099063240786229f6 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:15:38 +0700 Subject: [PATCH 11/32] gatsby-remark-images: bump deps --- packages/gatsby-remark-images/package.json | 10 +-- yarn.lock | 86 ++++++++++------------ 2 files changed, 44 insertions(+), 52 deletions(-) diff --git a/packages/gatsby-remark-images/package.json b/packages/gatsby-remark-images/package.json index 3d005c5b04dcd..ccb950d9fbeeb 100644 --- a/packages/gatsby-remark-images/package.json +++ b/packages/gatsby-remark-images/package.json @@ -13,11 +13,11 @@ "gatsby-core-utils": "^2.0.0-next.1", "is-relative-url": "^3.0.0", "lodash": "^4.17.20", - "mdast-util-definitions": "^1.2.5", + "mdast-util-definitions": "^4.0.0", "potrace": "^2.1.8", "query-string": "^6.13.3", - "unist-util-select": "^1.5.0", - "unist-util-visit-parents": "^2.1.2" + "unist-util-select": "^3.0.4", + "unist-util-visit-parents": "^3.1.1" }, "devDependencies": { "@babel/cli": "^7.12.1", @@ -25,8 +25,8 @@ "babel-preset-gatsby-package": "^1.0.0-next.0", "cross-env": "^7.0.3", "gatsby-plugin-utils": "^1.0.0-next.0", - "hast-util-to-html": "^6.1.0", - "mdast-util-to-hast": "^6.0.2" + "hast-util-to-html": "^7.1.2", + "mdast-util-to-hast": "^10.2.0" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images#readme", "keywords": [ diff --git a/yarn.lock b/yarn.lock index dd3fd3ac7a1c2..4609188faa952 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9055,6 +9055,11 @@ css-select@^2.0.0: domutils "^1.7.0" nth-check "^1.0.1" +css-selector-parser@^1.0.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/css-selector-parser/-/css-selector-parser-1.4.1.tgz#03f9cb8a81c3e5ab2c51684557d5aaf6d2569759" + integrity sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g== + css-selector-parser@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/css-selector-parser/-/css-selector-parser-1.3.0.tgz#5f1ad43e2d8eefbfdc304fcd39a521664943e3eb" @@ -13371,22 +13376,6 @@ hast-util-to-html@^4.0.0: unist-util-is "^2.0.0" xtend "^4.0.1" -hast-util-to-html@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/hast-util-to-html/-/hast-util-to-html-6.1.0.tgz#86bcd19c3bd46af456984f8f34db16298c2b10b0" - integrity sha512-IlC+LG2HGv0Y8js3wqdhg9O2sO4iVpRDbHOPwXd7qgeagpGsnY49i8yyazwqS35RA35WCzrBQE/n0M6GG/ewxA== - dependencies: - ccount "^1.0.0" - comma-separated-tokens "^1.0.1" - hast-util-is-element "^1.0.0" - hast-util-whitespace "^1.0.0" - html-void-elements "^1.0.0" - property-information "^5.2.0" - space-separated-tokens "^1.0.0" - stringify-entities "^2.0.0" - unist-util-is "^3.0.0" - xtend "^4.0.1" - hast-util-to-html@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/hast-util-to-html/-/hast-util-to-html-7.1.2.tgz#db677f0ee483658cea0eecc9dec30aba42b67111" @@ -17256,7 +17245,7 @@ mdast-util-compact@^2.0.0: dependencies: unist-util-visit "^2.0.0" -mdast-util-definitions@^1.2.0, mdast-util-definitions@^1.2.5: +mdast-util-definitions@^1.2.0: version "1.2.5" resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-1.2.5.tgz#3fe622a4171c774ebd06f11e9f8af7ec53ea5c74" integrity sha512-CJXEdoLfiISCDc2JB6QLb79pYfI6+GcIH+W2ox9nMc7od0Pz+bovcHsiq29xAQY6ayqe/9CsK2VzkSJdg1pFYA== @@ -17398,23 +17387,6 @@ mdast-util-to-hast@^3.0.0: unist-util-visit "^1.1.0" xtend "^4.0.1" -mdast-util-to-hast@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-6.0.2.tgz#24a8791b7c624118637d70f03a9d29116e4311cf" - integrity sha512-GjcOimC9qHI0yNFAQdBesrZXzUkRdFleQlcoU8+TVNfDW6oLUazUx8MgUoTaUyCJzBOnE5AOgqhpURrSlf0QwQ== - dependencies: - collapse-white-space "^1.0.0" - detab "^2.0.0" - mdast-util-definitions "^1.2.0" - mdurl "^1.0.1" - trim "0.0.1" - trim-lines "^1.0.0" - unist-builder "^1.0.1" - unist-util-generated "^1.1.0" - unist-util-position "^3.0.0" - unist-util-visit "^1.1.0" - xtend "^4.0.1" - mdast-util-to-markdown@^0.6.0, mdast-util-to-markdown@^0.6.1, mdast-util-to-markdown@~0.6.0: version "0.6.5" resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz#b33f67ca820d69e6cc527a93d4039249b504bebe" @@ -18686,6 +18658,11 @@ normalizeurl@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/normalizeurl/-/normalizeurl-1.0.0.tgz#4b1a458cd0c7d0856436f69c6b51047ab6855317" +not@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/not/-/not-0.1.0.tgz#c9691c1746c55dcfbe54cbd8bd4ff041bc2b519d" + integrity sha1-yWkcF0bFXc++VMvYvU/wQbwrUZ0= + now-and-later@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/now-and-later/-/now-and-later-2.0.0.tgz#bc61cbb456d79cb32207ce47ca05136ff2e7d6ee" @@ -18832,6 +18809,13 @@ nth-check@^1.0.1, nth-check@~1.0.1: dependencies: boolbase "~1.0.0" +nth-check@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.0.0.tgz#1bb4f6dac70072fc313e8c9cd1417b5074c0a125" + integrity sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q== + dependencies: + boolbase "^1.0.0" + null-check@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/null-check/-/null-check-1.0.0.tgz#977dffd7176012b9ec30d2a39db5cf72a0439edd" @@ -20830,7 +20814,7 @@ property-information@^4.0.0: dependencies: xtend "^4.0.1" -property-information@^5.0.0, property-information@^5.0.1, property-information@^5.2.0, property-information@^5.3.0: +property-information@^5.0.0, property-information@^5.0.1, property-information@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/property-information/-/property-information-5.5.0.tgz#4dc075d493061a82e2b7d096f406e076ed859943" integrity sha512-RgEbCx2HLa1chNgvChcx+rrCWD0ctBmGSE0M7lVm1yyv4UbvbrWoXp/BkVLZefzjrRBGW8/Js6uh/BnlHXFyjA== @@ -24711,17 +24695,6 @@ stringify-entities@^1.0.1: is-alphanumerical "^1.0.0" is-hexadecimal "^1.0.0" -stringify-entities@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-2.0.0.tgz#fa7ca6614b355fb6c28448140a20c4ede7462827" - integrity sha512-fqqhZzXyAM6pGD9lky/GOPq6V4X0SeTAFBl0iXb/BzOegl40gpf/bV3QQP7zULNYvjr6+Dx8SCaDULjVoOru0A== - dependencies: - character-entities-html4 "^1.0.0" - character-entities-legacy "^1.0.0" - is-alphanumerical "^1.0.0" - is-decimal "^1.0.2" - is-hexadecimal "^1.0.0" - stringify-entities@^3.0.0, stringify-entities@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-3.0.1.tgz#32154b91286ab0869ab2c07696223bd23b6dbfc0" @@ -26382,6 +26355,17 @@ unist-util-select@^1.5.0: debug "^2.2.0" nth-check "^1.0.1" +unist-util-select@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/unist-util-select/-/unist-util-select-3.0.4.tgz#702c9dc1db1b2bbbfe27f796fce99e43f25edc60" + integrity sha512-xf1zCu4okgPqGLdhCDpRnjwBNyv3EqjiXRUbz2SdK1+qnLMB7uXXajfzuBvvbHoQ+JLyp4AEbFCGndmc6S72sw== + dependencies: + css-selector-parser "^1.0.0" + not "^0.1.0" + nth-check "^2.0.0" + unist-util-is "^4.0.0" + zwitch "^1.0.0" + unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6" @@ -26402,7 +26386,7 @@ unist-util-visit-parents@1.1.2: resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-1.1.2.tgz#f6e3afee8bdbf961c0e6f028ea3c0480028c3d06" integrity sha512-yvo+MMLjEwdc3RhhPYSximset7rwjMrdt9E41Smmvg25UQIenzrN83cRnF1JMzoMi9zZOQeYXHSDf7p+IQkW3Q== -unist-util-visit-parents@^2.0.0, unist-util-visit-parents@^2.1.2: +unist-util-visit-parents@^2.0.0: version "2.1.2" resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-2.1.2.tgz#25e43e55312166f3348cae6743588781d112c1e9" integrity sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g== @@ -26417,6 +26401,14 @@ unist-util-visit-parents@^3.0.0: "@types/unist" "^2.0.3" unist-util-is "^4.0.0" +unist-util-visit-parents@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz#65a6ce698f78a6b0f56aa0e88f13801886cdaef6" + integrity sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg== + dependencies: + "@types/unist" "^2.0.0" + unist-util-is "^4.0.0" + unist-util-visit@2.0.3, unist-util-visit@^2.0.0, unist-util-visit@^2.0.2, unist-util-visit@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c" From d94e615d04d1118874b03f7ccbc4f2f0b62e0126 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:20:38 +0700 Subject: [PATCH 12/32] gatsby-remark-images-contentful: bump deps --- packages/gatsby-remark-images-contentful/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-remark-images-contentful/package.json b/packages/gatsby-remark-images-contentful/package.json index 38bd860116899..1361c6261f6c4 100644 --- a/packages/gatsby-remark-images-contentful/package.json +++ b/packages/gatsby-remark-images-contentful/package.json @@ -23,7 +23,7 @@ "lodash": "^4.17.20", "semver": "^7.3.2", "sharp": "^0.27.0", - "unist-util-select": "^1.5.0" + "unist-util-select": "^3.0.4" }, "devDependencies": { "@babel/cli": "^7.12.1", From 8c60fdb3317dd6a6d905f228fdc38b9d0400ad0b Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:21:02 +0700 Subject: [PATCH 13/32] gatsby-remark-katex: bump deps --- packages/gatsby-remark-katex/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-remark-katex/package.json b/packages/gatsby-remark-katex/package.json index b015fbebfac37..e23153a17d180 100644 --- a/packages/gatsby-remark-katex/package.json +++ b/packages/gatsby-remark-katex/package.json @@ -8,8 +8,8 @@ }, "dependencies": { "@babel/runtime": "^7.12.5", - "remark-math": "^1.0.6", - "unist-util-visit": "^1.4.1" + "remark-math": "^4.0.0", + "unist-util-visit": "^2.0.3" }, "devDependencies": { "@babel/cli": "^7.12.1", @@ -29,7 +29,7 @@ "main": "index.js", "peerDependencies": { "gatsby": "^3.0.0-next.0", - "katex": "^0.10.0" + "katex": "^0.12.0" }, "repository": { "type": "git", From 16f8a5d3675c71b51ddf57708b2f697e8fb98462 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:21:51 +0700 Subject: [PATCH 14/32] gatsby-remark-responsive-iframe: bump deps --- packages/gatsby-remark-responsive-iframe/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-remark-responsive-iframe/package.json b/packages/gatsby-remark-responsive-iframe/package.json index 26bf925a386f0..3e33e94d54ab6 100644 --- a/packages/gatsby-remark-responsive-iframe/package.json +++ b/packages/gatsby-remark-responsive-iframe/package.json @@ -11,14 +11,14 @@ "cheerio": "^1.0.0-rc.3", "common-tags": "^1.8.0", "lodash": "^4.17.20", - "unist-util-visit": "^1.4.1" + "unist-util-visit": "^2.0.3" }, "devDependencies": { "@babel/cli": "^7.12.1", "@babel/core": "^7.12.3", "babel-preset-gatsby-package": "^1.0.0-next.0", "cross-env": "^7.0.3", - "remark": "^10.0.1", + "remark": "^13.0.0", "remark-mdx": "^1.6.21", "unist-util-find": "^1.0.2" }, From 62f3b2facd62fb1fc0667e600ef0d77f57d2bce5 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:22:05 +0700 Subject: [PATCH 15/32] gatsby-remark-smartypants: bump deps --- packages/gatsby-remark-smartypants/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-remark-smartypants/package.json b/packages/gatsby-remark-smartypants/package.json index f95219619e468..cde1749e0a7f4 100644 --- a/packages/gatsby-remark-smartypants/package.json +++ b/packages/gatsby-remark-smartypants/package.json @@ -8,9 +8,9 @@ }, "dependencies": { "@babel/runtime": "^7.12.5", - "retext": "^5.0.0", - "retext-smartypants": "^3.0.3", - "unist-util-visit": "^1.4.1" + "retext": "^7.0.1", + "retext-smartypants": "^4.0.0", + "unist-util-visit": "^2.0.3" }, "devDependencies": { "@babel/cli": "^7.12.1", From 0dfcec3ebffe0374b7e86a11a574729277aa3e06 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 04:22:14 +0700 Subject: [PATCH 16/32] update yarn.lock --- yarn.lock | 48 +++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/yarn.lock b/yarn.lock index 4609188faa952..bfe4f4eb4337d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17339,6 +17339,15 @@ mdast-util-inject@^1.1.0: dependencies: mdast-util-to-string "^1.0.0" +mdast-util-math@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/mdast-util-math/-/mdast-util-math-0.1.2.tgz#629a0793bd8822432917e5ddda5279492390cc2b" + integrity sha512-fogAitds+wH+QRas78Yr1TwmQGN4cW/G2WRw5ePuNoJbBSPJCxIOCE8MTzHgWHVSpgkRaPQTgfzXRE1CrwWSlg== + dependencies: + longest-streak "^2.0.0" + mdast-util-to-markdown "^0.6.0" + repeat-string "^1.0.0" + mdast-util-to-hast@9.1.0: version "9.1.0" resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-9.1.0.tgz#6ef121dd3cd3b006bf8650b1b9454da0faf79ffe" @@ -17734,6 +17743,14 @@ micromark-extension-gfm@^0.3.0: micromark-extension-gfm-tagfilter "~0.3.0" micromark-extension-gfm-task-list-item "~0.3.0" +micromark-extension-math@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/micromark-extension-math/-/micromark-extension-math-0.1.2.tgz#5d7bb2b86018da4a758c05f3991664430ee4d711" + integrity sha512-ZJXsT2eVPM8VTmcw0CPSDeyonOn9SziGK3Z+nkf9Vb6xMPeU+4JMEnO6vzDL10562Favw8Vste74f54rxJ/i6Q== + dependencies: + katex "^0.12.0" + micromark "~2.11.0" + micromark@^2.11.3, micromark@~2.11.0, micromark@~2.11.3: version "2.11.4" resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" @@ -22389,12 +22406,13 @@ remark-lint@^7.0.0, remark-lint@^7.0.1: dependencies: remark-message-control "^6.0.0" -remark-math@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/remark-math/-/remark-math-1.0.6.tgz#49eb3dd15d298734c9ae21673115389793af4d1b" - integrity sha512-I43wU/QOQpXvVFXKjA4FHp5xptK65+5F6yolm8+69/JV0EqSOB64wURUZ3JK50JtnTL8FvwLiH2PZ+fvsBxviA== +remark-math@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/remark-math/-/remark-math-4.0.0.tgz#494ddd50766555ad2332e3afca7796a76452256f" + integrity sha512-lH7SoQenXtQrvL0bm+mjZbvOk//YWNuyR+MxV18Qyv8rgFmMEGNuB0TSCQDkoDaiJ40FCnG8lxErc/zhcedYbw== dependencies: - trim-trailing-lines "^1.1.0" + mdast-util-math "^0.1.0" + micromark-extension-math "^0.1.0" remark-mdx@1.6.16: version "1.6.16" @@ -23135,13 +23153,13 @@ retext-sentence-spacing@^4.0.0: unist-util-is "^4.0.0" unist-util-visit "^2.0.0" -retext-smartypants@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/retext-smartypants/-/retext-smartypants-3.0.3.tgz#9c982dcc210ae3bb36f4bc46aae802798fce43f9" - integrity sha512-/0fIipYayOvvucn3yjxvWwyT9P6p8gbpqdqUQNs1+L7av2hxatmiA9sk+fygJSDn5OXRyhBzcezvTbEmEabfIQ== +retext-smartypants@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/retext-smartypants/-/retext-smartypants-4.0.0.tgz#77478bd9775b4d7505122b0799594339e08d4fda" + integrity sha512-Mknd05zuIycr4Z/hNDxA8ktqv7pG7wYdTZc68a2MJF+Ibg/WloR5bbyrEjijwNwHRR+xWsovkLH4OQIz/mghdw== dependencies: nlcst-to-string "^2.0.0" - unist-util-visit "^1.0.0" + unist-util-visit "^2.0.0" retext-spell@^4.0.0: version "4.0.0" @@ -23179,14 +23197,6 @@ retext-syntax-urls@^2.0.0: unist-util-modify-children "^1.1.1" unist-util-position "^3.0.0" -retext@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/retext/-/retext-5.0.0.tgz#5d9018c4a677d6103c142362d76f50eb1d398bf6" - dependencies: - retext-latin "^2.0.0" - retext-stringify "^2.0.0" - unified "^6.0.0" - retext@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/retext/-/retext-7.0.1.tgz#04b7965ab78fe6e5e3a489304545b460d41bf5aa" @@ -25744,7 +25754,7 @@ trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" -trim-trailing-lines@^1.0.0, trim-trailing-lines@^1.1.0: +trim-trailing-lines@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-1.1.1.tgz#e0ec0810fd3c3f1730516b45f49083caaf2774d9" From eb0ffd2baed28334fa53f36a34105d8e092b9db8 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 18:55:53 +0700 Subject: [PATCH 17/32] gatsby-remark-prismjs: update snapshots --- .../src/__tests__/__snapshots__/index.js.snap | 122 +++++------------- 1 file changed, 35 insertions(+), 87 deletions(-) diff --git a/packages/gatsby-remark-prismjs/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-prismjs/src/__tests__/__snapshots__/index.js.snap index d5bb202e8e95b..04fe968cee858 100644 --- a/packages/gatsby-remark-prismjs/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-prismjs/src/__tests__/__snapshots__/index.js.snap @@ -5,19 +5,13 @@ Object { "children": Array [ Object { "lang": "diff-javascript", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 6, "offset": 141, }, - "indent": Array [ - 1, - 1, - 1, - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -53,13 +47,12 @@ Object { Object { "children": Array [ Object { - "position": Position { + "position": Object { "end": Object { "column": 11, "line": 1, "offset": 10, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -70,13 +63,12 @@ Object { "value": "some text ", }, Object { - "position": Position { + "position": Object { "end": Object { "column": 35, "line": 1, "offset": 34, }, - "indent": Array [], "start": Object { "column": 11, "line": 1, @@ -87,13 +79,12 @@ Object { "value": "containing inline code", }, ], - "position": Position { + "position": Object { "end": Object { "column": 35, "line": 1, "offset": 34, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -124,16 +115,13 @@ Object { "children": Array [ Object { "lang": "js", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 3, "offset": 17, }, - "indent": Array [ - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -165,16 +153,13 @@ Object { "children": Array [ Object { "lang": "foobar", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 3, "offset": 21, }, - "indent": Array [ - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -206,16 +191,13 @@ Object { "children": Array [ Object { "lang": "foobar", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 3, "offset": 21, }, - "indent": Array [ - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -247,16 +229,13 @@ Object { "children": Array [ Object { "lang": "js", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 3, "offset": 17, }, - "indent": Array [ - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -288,18 +267,13 @@ Object { "children": Array [ Object { "lang": "js{2}", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 5, "offset": 27, }, - "indent": Array [ - 1, - 1, - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -333,13 +307,12 @@ Object { Object { "children": Array [ Object { - "position": Position { + "position": Object { "end": Object { "column": 29, "line": 1, "offset": 28, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -350,13 +323,12 @@ Object { "value": ".foo { color: red }", }, ], - "position": Position { + "position": Object { "end": Object { "column": 29, "line": 1, "offset": 28, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -388,13 +360,12 @@ Object { Object { "children": Array [ Object { - "position": Position { + "position": Object { "end": Object { "column": 10, "line": 1, "offset": 9, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -405,13 +376,12 @@ Object { "value": "foo bar", }, ], - "position": Position { + "position": Object { "end": Object { "column": 10, "line": 1, "offset": 9, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -443,13 +413,12 @@ Object { Object { "children": Array [ Object { - "position": Position { + "position": Object { "end": Object { "column": 16, "line": 1, "offset": 15, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -460,13 +429,12 @@ Object { "value": "Fake", }, ], - "position": Position { + "position": Object { "end": Object { "column": 16, "line": 1, "offset": 15, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -498,13 +466,12 @@ Object { Object { "children": Array [ Object { - "position": Position { + "position": Object { "end": Object { "column": 10, "line": 1, "offset": 9, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -515,13 +482,12 @@ Object { "value": "foo bar", }, ], - "position": Position { + "position": Object { "end": Object { "column": 10, "line": 1, "offset": 9, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -552,17 +518,13 @@ Object { "children": Array [ Object { "lang": "js", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 4, "offset": 31, }, - "indent": Array [ - 1, - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -596,17 +558,13 @@ Object { "children": Array [ Object { "lang": "js{numberLines:5}", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 4, "offset": 46, }, - "indent": Array [ - 1, - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -640,17 +598,13 @@ Object { "children": Array [ Object { "lang": "js", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 4, "line": 4, "offset": 31, }, - "indent": Array [ - 1, - 1, - 1, - ], "start": Object { "column": 1, "line": 1, @@ -684,15 +638,13 @@ Object { "children": Array [ Object { "lang": "bash{promptHost:server}", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 15, "line": 2, "offset": 41, }, - "indent": Array [ - 1, - ], "start": Object { "column": 1, "line": 1, @@ -724,15 +676,13 @@ Object { "children": Array [ Object { "lang": "bash{promptUser:alice}{promptHost:server}", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 15, "line": 2, "offset": 59, }, - "indent": Array [ - 1, - ], "start": Object { "column": 1, "line": 1, @@ -764,15 +714,13 @@ Object { "children": Array [ Object { "lang": "bash{promptUser:alice}", - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 15, "line": 2, "offset": 40, }, - "indent": Array [ - 1, - ], "start": Object { "column": 1, "line": 1, From 1a8d8c6863cbbc75630e0d532d2c984a91a407af Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 19:38:21 +0700 Subject: [PATCH 18/32] gatsby-remark-images-contentful: bump deps --- packages/gatsby-remark-images-contentful/src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-remark-images-contentful/src/index.js b/packages/gatsby-remark-images-contentful/src/index.js index c8330f9795daa..67098cc508360 100644 --- a/packages/gatsby-remark-images-contentful/src/index.js +++ b/packages/gatsby-remark-images-contentful/src/index.js @@ -1,4 +1,4 @@ -const select = require(`unist-util-select`) +const { selectAll } = require(`unist-util-select`) const sharp = require(`./safe-sharp`) const axios = require(`axios`) const _ = require(`lodash`) @@ -39,10 +39,10 @@ module.exports = async ( } // This will only work for markdown syntax image tags - const markdownImageNodes = select(markdownAST, `image`) + const markdownImageNodes = selectAll(`image`, markdownAST) // This will also allow the use of html image tags - const rawHtmlNodes = select(markdownAST, `html`) + const rawHtmlNodes = selectAll(`html`, markdownAST) const generateImagesAndUpdateNode = async function (node, resolve) { // Ignore if it is not contentful image From a6e8d4d26879ace80f011cdc3e6faa9deb92582b Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 19:59:12 +0700 Subject: [PATCH 19/32] chore: bump root remark deps --- package.json | 14 ++-- yarn.lock | 201 ++++++++++++++++++++++++++++----------------------- 2 files changed, 116 insertions(+), 99 deletions(-) diff --git a/package.json b/package.json index a48d10eed274b..26b406f5b2849 100644 --- a/package.json +++ b/package.json @@ -63,15 +63,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-diacritics": "^3.0.0", "retext-emoji": "^7.0.2", @@ -159,4 +159,4 @@ "workspaces": [ "packages/*" ] -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index bfe4f4eb4337d..921a32a62f687 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11539,7 +11539,7 @@ fastq@^1.10.0, fastq@^1.6.0: dependencies: reusify "^1.0.4" -fault@^1.0.0, fault@^1.0.1, fault@^1.0.2: +fault@^1.0.0, fault@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/fault/-/fault-1.0.4.tgz#eafcfc0a6d214fc94601e170df29954a4f842f13" integrity sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA== @@ -17286,6 +17286,13 @@ mdast-util-from-markdown@^0.8.0: parse-entities "^2.0.0" unist-util-stringify-position "^2.0.0" +mdast-util-frontmatter@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/mdast-util-frontmatter/-/mdast-util-frontmatter-0.2.0.tgz#8bd5cd55e236c03e204a036f7372ebe9e6748240" + integrity sha512-FHKL4w4S5fdt1KjJCwB0178WJ0evnyyQr5kXTM3wrOVpytD0hrkvd+AOOjU9Td8onOejCkmZ+HQRT3CZ3coHHQ== + dependencies: + micromark-extension-frontmatter "^0.2.0" + mdast-util-gfm-autolink-literal@^0.1.0: version "0.1.3" resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-0.1.3.tgz#9c4ff399c5ddd2ece40bd3b13e5447d84e385fb7" @@ -17698,6 +17705,13 @@ microevent.ts@~0.1.1: resolved "https://registry.yarnpkg.com/microevent.ts/-/microevent.ts-0.1.1.tgz#70b09b83f43df5172d0205a63025bce0f7357fa0" integrity sha512-jo1OfR4TaEwd5HOrt5+tAZ9mqT4jmpNAusXtyfNzqVm9uiSYFZlKM1wYL4oU7azZW/PxQW53wM0S6OR1JHNa2g== +micromark-extension-frontmatter@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/micromark-extension-frontmatter/-/micromark-extension-frontmatter-0.2.2.tgz#61b8e92e9213e1d3c13f5a59e7862f5ca98dfa53" + integrity sha512-q6nPLFCMTLtfsctAuS0Xh4vaolxSFUWUWR6PZSrXXiRy+SANGllpcqdXFv2z07l0Xz/6Hl40hK0ffNCJPH2n1A== + dependencies: + fault "^1.0.0" + micromark-extension-gfm-autolink-literal@~0.5.0: version "0.5.6" resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.6.tgz#406a58914d7a9cc6fb4cfafccc61a8ca36d7a12a" @@ -21835,13 +21849,13 @@ relateurl@0.2.x, relateurl@^0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" -remark-cli@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/remark-cli/-/remark-cli-8.0.1.tgz#093e9f27c1d56a591f4c44c017de5749d4e79a08" - integrity sha512-UaYeFI5qUAzkthUd8/MLBQD5OKM6jLN8GRvF6v+KF7xO/i1jQ+X2VqUSQAxWFYxZ8R25gM56GVjeoKOZ0EIr8A== +remark-cli@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/remark-cli/-/remark-cli-9.0.0.tgz#6f7951e7a72217535f2e32b7a6d3f638fe182f86" + integrity sha512-y6kCXdwZoMoh0Wo4Och1tDW50PmMc86gW6GpF08v9d+xUCEJE2wwXdQ+TnTaUamRnfFdU+fE+eNf2PJ53cyq8g== dependencies: markdown-extensions "^1.1.0" - remark "^12.0.0" + remark "^13.0.0" unified-args "^8.0.0" remark-custom-blocks@^2.5.0: @@ -21856,12 +21870,13 @@ remark-footnotes@1.0.0: resolved "https://registry.yarnpkg.com/remark-footnotes/-/remark-footnotes-1.0.0.tgz#9c7a97f9a89397858a50033373020b1ea2aad011" integrity sha512-X9Ncj4cj3/CIvLI2Z9IobHtVi8FVdUrdJkCNaL9kdX8ohfsi18DXHsCVd/A7ssARBdccdDb5ODnt62WuEWaM/g== -remark-frontmatter@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-frontmatter/-/remark-frontmatter-2.0.0.tgz#c9b8539c27cd23b1672c7e0fcbd5795eeedb4dc1" - integrity sha512-uNOQt4tO14qBFWXenF0MLC4cqo3dv8qiHPGyjCl1rwOT0LomSHpcElbjjVh5CwzElInB38HD8aSRVugKQjeyHA== +remark-frontmatter@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-frontmatter/-/remark-frontmatter-3.0.0.tgz#ca5d996361765c859bd944505f377d6b186a6ec6" + integrity sha512-mSuDd3svCHs+2PyO29h7iijIZx4plX0fheacJcAoYAASfgzgVIcXGYSq9GFyYocFLftQs8IOmmkgtOovs6d4oA== dependencies: - fault "^1.0.1" + mdast-util-frontmatter "^0.2.0" + micromark-extension-frontmatter "^0.2.0" remark-gfm@^1.0.0: version "1.0.0" @@ -22025,15 +22040,14 @@ remark-lint-link-title-style@^2.0.0: unist-util-visit "^2.0.0" vfile-location "^3.0.0" -remark-lint-list-item-bullet-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-list-item-bullet-indent/-/remark-lint-list-item-bullet-indent-2.0.0.tgz#895e71cdeb7b0c37eab4abb7b2e1ae3b61275a6f" - integrity sha512-8iK+ht771UBf/Iuj4YBgdLnFFOyEgfXY62jBoywtMuiOLVWXDfPe+jUY7pCrnFjsnxXGEnMaxHJqENgrHd0J/w== +remark-lint-list-item-bullet-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-list-item-bullet-indent/-/remark-lint-list-item-bullet-indent-3.0.0.tgz#3c902e75e841850da8b37126da45fc1fe850d7d6" + integrity sha512-X2rleWP8XReC4LXKF7Qi5vYiPJkA4Grx5zxsjHofFrVRz6j0PYOCuz7vsO+ZzMunFMfom6FODnscSWz4zouDVw== dependencies: pluralize "^8.0.0" unified-lint-rule "^1.0.0" unist-util-generated "^1.1.0" - unist-util-position "^3.0.0" unist-util-visit "^2.0.0" remark-lint-list-item-content-indent@^2.0.0: @@ -22058,10 +22072,10 @@ remark-lint-list-item-indent@^2.0.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" -remark-lint-list-item-spacing@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-list-item-spacing/-/remark-lint-list-item-spacing-2.0.0.tgz#92d6a9f2cf7026fd797b752a1a2767686f90a814" - integrity sha512-IxIAFIJA0BqciY28OZEJXe6oeMsonVA8hcw/JEx4pTJidEBKz/LLZ8t5ZLNFPh8Tdt/XnzvcmNPqPCoa05XDhg== +remark-lint-list-item-spacing@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-list-item-spacing/-/remark-lint-list-item-spacing-3.0.0.tgz#14c18fe8c0f19231edb5cf94abda748bb773110b" + integrity sha512-SRUVonwdN3GOSFb6oIYs4IfJxIVR+rD0nynkX66qEO49/qDDT1PPvkndis6Nyew5+t+2V/Db9vqllL6SWbnEtw== dependencies: unified-lint-rule "^1.0.0" unist-util-generated "^1.1.0" @@ -22099,21 +22113,21 @@ remark-lint-no-auto-link-without-protocol@^2.0.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" -remark-lint-no-blockquote-without-marker@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-no-blockquote-without-marker/-/remark-lint-no-blockquote-without-marker-3.0.0.tgz#8790558a6b45e326434a89e36806f86ea59a82d1" - integrity sha512-auyAxMVDuhvGw29VilqUfUIUnBT7qmByG/kBPqV/GwM1a5rn4fIUJ7p9Je9BlWMRCBMTNQUMsm3ce0dawouVew== +remark-lint-no-blockquote-without-marker@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-no-blockquote-without-marker/-/remark-lint-no-blockquote-without-marker-4.0.0.tgz#856fb64dd038fa8fc27928163caa24a30ff4d790" + integrity sha512-Y59fMqdygRVFLk1gpx2Qhhaw5IKOR9T38Wf7pjR07bEFBGUNfcoNVIFMd1TCJfCPQxUyJzzSqfZz/KT7KdUuiQ== dependencies: unified-lint-rule "^1.0.0" - unist-util-generated "^1.1.0" + unist-util-generated "^1.0.0" unist-util-position "^3.0.0" unist-util-visit "^2.0.0" vfile-location "^3.0.0" -remark-lint-no-consecutive-blank-lines@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-no-consecutive-blank-lines/-/remark-lint-no-consecutive-blank-lines-2.0.0.tgz#53950a3947aee9ddf6a467ae0cf828f4d029a1d2" - integrity sha512-qIXHW0atHaOmHlu7V+4Krs5IAdIZhcXoeRdOMgqkGNW8CtfL12pP8KnzigAB9D5/X/qxPxZ95Js/KaESFS+3hA== +remark-lint-no-consecutive-blank-lines@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-no-consecutive-blank-lines/-/remark-lint-no-consecutive-blank-lines-3.0.0.tgz#c8fe11095b8f031a1406da273722bd4a9174bf41" + integrity sha512-kmzLlOLrapBKEngwYFTdCZDmeOaze6adFPB7G0EdymD9V1mpAlnneINuOshRLEDKK5fAhXKiZXxdGIaMPkiXrA== dependencies: pluralize "^8.0.0" unified-lint-rule "^1.0.0" @@ -22200,10 +22214,10 @@ remark-lint-no-file-name-outer-dashes@^1.0.0: dependencies: unified-lint-rule "^1.0.0" -remark-lint-no-heading-content-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-no-heading-content-indent/-/remark-lint-no-heading-content-indent-2.0.0.tgz#1ffb32496c674ac276565daf49fea4c36d9c0ccb" - integrity sha512-Zqg0WXG60Nan8j7HZtnBXidMxXhlhc7Q5JrB54I3n7H3vSPCyaqhZJ2/obYVLalEVGND8NOJGvfA1rtchaZyYg== +remark-lint-no-heading-content-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-no-heading-content-indent/-/remark-lint-no-heading-content-indent-3.0.0.tgz#faa323a52fcb5db9b3ce16cb8e417e43ab433af1" + integrity sha512-yULDoVSIqKylLDfW6mVUbrHlyEWUSFtVFiKc+/BA412xDIhm8HZLUnP+FsuBC0OzbIZ+bO9Txy52WtO3LGnK1A== dependencies: mdast-util-heading-style "^1.0.2" pluralize "^8.0.0" @@ -22222,10 +22236,10 @@ remark-lint-no-heading-punctuation@^2.0.0: unist-util-generated "^1.1.0" unist-util-visit "^2.0.0" -remark-lint-no-inline-padding@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-no-inline-padding/-/remark-lint-no-inline-padding-2.0.0.tgz#fc1b997a939477def3fc69198c2a7d43169e25a9" - integrity sha512-0YueQ3SBA8zFQYCN0/afRc6ZuSbM4Azx4sPVeVpAfMT0MrYgmi6msswyhUDXaeN2RwVO6bx/ZW6di8dVqRr7UA== +remark-lint-no-inline-padding@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-no-inline-padding/-/remark-lint-no-inline-padding-3.0.0.tgz#14c2722bcddc648297a54298107a922171faf6eb" + integrity sha512-3s9uW3Yux9RFC0xV81MQX3bsYs+UY7nPnRuMxeIxgcVwxQ4E/mTJd9QjXUwBhU9kdPtJ5AalngdmOW2Tgar8Cg== dependencies: mdast-util-to-string "^1.0.2" unified-lint-rule "^1.0.0" @@ -22290,25 +22304,27 @@ remark-lint-no-shortcut-reference-link@^2.0.0: unist-util-generated "^1.1.0" unist-util-visit "^2.0.0" -remark-lint-no-table-indentation@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-no-table-indentation/-/remark-lint-no-table-indentation-2.0.0.tgz#218c27d952c780df5577c2b461e63499a641a793" - integrity sha512-5akpqHl+5r3Xe2WFiZB1I9eAwn6zTYqXNd0CVsiTF3DJo0KyvvgyrFRV1sCf/l/kzyNaFvpWpFDTMoWc8EI0RQ== +remark-lint-no-table-indentation@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-no-table-indentation/-/remark-lint-no-table-indentation-3.0.0.tgz#f3c3fc24375069ec8e510f43050600fb22436731" + integrity sha512-+l7GovI6T+3LhnTtz/SmSRyOb6Fxy6tmaObKHrwb/GAebI/4MhFS1LVo3vbiP/RpPYtyQoFbbuXI55hqBG4ibQ== dependencies: unified-lint-rule "^1.0.0" - unist-util-generated "^1.1.0" unist-util-position "^3.0.0" unist-util-visit "^2.0.0" + vfile-location "^3.0.0" -remark-lint-no-undefined-references@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-no-undefined-references/-/remark-lint-no-undefined-references-2.0.0.tgz#ec2a45cd19d36a5d9ce16df0a044496881143119" - integrity sha512-K4k05pmlMRqEMUDYewitRUx8zM+ntJWbG61dILmL7to7uy0JoSbzuDtz1cxC+kKBKzkulPnyE3WOgRZG8RX2Jg== +remark-lint-no-undefined-references@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-no-undefined-references/-/remark-lint-no-undefined-references-3.0.0.tgz#59dab8f815f8de9f1dcbd69e7cc705978e931cb0" + integrity sha512-0hzaJS9GuzSQVOeeNdJr/s66LRQOzp618xuOQPYWHcJdd+SCaRTyWbjMrTM/cCI5L1sYjgurp410NkIBQ32Vqg== dependencies: collapse-white-space "^1.0.4" unified-lint-rule "^1.0.0" unist-util-generated "^1.1.0" + unist-util-position "^3.1.0" unist-util-visit "^2.0.0" + vfile-location "^3.1.0" remark-lint-no-unused-definitions@^2.0.0: version "2.0.0" @@ -22359,10 +22375,10 @@ remark-lint-strong-marker@^2.0.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" -remark-lint-table-cell-padding@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-table-cell-padding/-/remark-lint-table-cell-padding-2.0.0.tgz#0efc3d5a1085e98cca828e0603cb681a9d352dd6" - integrity sha512-UstIXIaRVRJPKZPv1AXX/p3qCt//RYNsRHIq8KvL5YQPKaKWRkj2cNermCgm0XoUXy0EmRPNiBtUcuAQaP+jXg== +remark-lint-table-cell-padding@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-table-cell-padding/-/remark-lint-table-cell-padding-3.0.0.tgz#a769ba1999984ff5f90294fb6ccb8aead7e8a12f" + integrity sha512-sEKrbyFZPZpxI39R8/r+CwUrin9YtyRwVn0SQkNQEZWZcIpylK+bvoKIldvLIXQPob+ZxklL0GPVRzotQMwuWQ== dependencies: unified-lint-rule "^1.0.0" unist-util-generated "^1.1.0" @@ -22379,10 +22395,10 @@ remark-lint-table-pipe-alignment@^2.0.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" -remark-lint-table-pipes@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/remark-lint-table-pipes/-/remark-lint-table-pipes-2.0.0.tgz#5fe4b2ad38a00a29c9d792a3aab9212cc65207e7" - integrity sha512-qGIttPFNT+19BEDz2JJWQtJIClFNIpg+XVw6ruX9LSR7xdo5QG9uARG4XS2EGUQQ7fiLIxQYb8g2dHwuXGbfmA== +remark-lint-table-pipes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/remark-lint-table-pipes/-/remark-lint-table-pipes-3.0.0.tgz#b30b055d594cae782667eec91c6c5b35928ab259" + integrity sha512-QPokSazEdl0Y8ayUV9UB0Ggn3Jos/RAQwIo0z1KDGnJlGDiF80Jc6iU9RgDNUOjlpQffSLIfSVxH5VVYF/K3uQ== dependencies: unified-lint-rule "^1.0.0" unist-util-generated "^1.1.0" @@ -22399,10 +22415,10 @@ remark-lint-unordered-list-marker-style@^2.0.0: unist-util-position "^3.0.0" unist-util-visit "^2.0.0" -remark-lint@^7.0.0, remark-lint@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/remark-lint/-/remark-lint-7.0.1.tgz#665a5cbea9f7c95e64593f69bb6816ee8343ffdf" - integrity sha512-caZXo3qhuBxzvq9JSJFVQ/ERDq/6TJVgWn0KDwKOIJCGOuLXfQhby5XttUq+Rn7kLbNMtvwfWHJlte14LpaeXQ== +remark-lint@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/remark-lint/-/remark-lint-8.0.0.tgz#6e40894f4a39eaea31fc4dd45abfaba948bf9a09" + integrity sha512-ESI8qJQ/TIRjABDnqoFsTiZntu+FRifZ5fJ77yX63eIDijl/arvmDvT+tAf75/Nm5BFL4R2JFUtkHRGVjzYUsg== dependencies: remark-message-control "^6.0.0" @@ -22494,7 +22510,7 @@ remark-parse@8.0.2: vfile-location "^3.0.0" xtend "^4.0.1" -remark-parse@8.0.3, remark-parse@^8.0.0: +remark-parse@8.0.3: version "8.0.3" resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-8.0.3.tgz#9c62aa3b35b79a486454c690472906075f40c7e1" integrity sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q== @@ -22563,12 +22579,12 @@ remark-parse@^9.0.0: dependencies: mdast-util-from-markdown "^0.8.0" -remark-preset-lint-markdown-style-guide@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/remark-preset-lint-markdown-style-guide/-/remark-preset-lint-markdown-style-guide-3.0.1.tgz#7f160e2ded777bfb14d544e9f72c6873bdfb6da3" - integrity sha512-1C4s6TtYCPueZIkxXK8aJ6qz84WqsxA7vA11i1PBIwJuL9a254X+QlbzhhEVKp0GwV4M/YTAVcfbGWVuiNEynw== +remark-preset-lint-markdown-style-guide@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/remark-preset-lint-markdown-style-guide/-/remark-preset-lint-markdown-style-guide-4.0.0.tgz#976b6ffd7f37aa90868e081a69241fcde3a297d4" + integrity sha512-gczDlfZ28Fz0IN/oddy0AH4CiTu9S8d3pJWUsrnwFiafjhJjPGobGE1OD3bksi53md1Bp4K0fzo99YYfvB4Sjw== dependencies: - remark-lint "^7.0.0" + remark-lint "^8.0.0" remark-lint-blockquote-indentation "^2.0.0" remark-lint-code-block-style "^2.0.0" remark-lint-definition-case "^2.0.0" @@ -22584,12 +22600,12 @@ remark-preset-lint-markdown-style-guide@^3.0.1: remark-lint-link-title-style "^2.0.0" remark-lint-list-item-content-indent "^2.0.0" remark-lint-list-item-indent "^2.0.0" - remark-lint-list-item-spacing "^2.0.0" + remark-lint-list-item-spacing "^3.0.0" remark-lint-maximum-heading-length "^2.0.0" remark-lint-maximum-line-length "^2.0.0" remark-lint-no-auto-link-without-protocol "^2.0.0" - remark-lint-no-blockquote-without-marker "^3.0.0" - remark-lint-no-consecutive-blank-lines "^2.0.0" + remark-lint-no-blockquote-without-marker "^4.0.0" + remark-lint-no-consecutive-blank-lines "^3.0.0" remark-lint-no-duplicate-headings "^2.0.0" remark-lint-no-emphasis-as-heading "^2.0.0" remark-lint-no-file-name-articles "^1.0.0" @@ -22598,41 +22614,41 @@ remark-preset-lint-markdown-style-guide@^3.0.1: remark-lint-no-file-name-mixed-case "^1.0.0" remark-lint-no-file-name-outer-dashes "^1.0.0" remark-lint-no-heading-punctuation "^2.0.0" - remark-lint-no-inline-padding "^2.0.0" + remark-lint-no-inline-padding "^3.0.0" remark-lint-no-literal-urls "^2.0.0" remark-lint-no-multiple-toplevel-headings "^2.0.0" remark-lint-no-shell-dollars "^2.0.0" remark-lint-no-shortcut-reference-image "^2.0.0" remark-lint-no-shortcut-reference-link "^2.0.0" - remark-lint-no-table-indentation "^2.0.0" + remark-lint-no-table-indentation "^3.0.0" remark-lint-ordered-list-marker-style "^2.0.0" remark-lint-ordered-list-marker-value "^2.0.0" remark-lint-rule-style "^2.0.0" remark-lint-strong-marker "^2.0.0" - remark-lint-table-cell-padding "^2.0.0" + remark-lint-table-cell-padding "^3.0.0" remark-lint-table-pipe-alignment "^2.0.0" - remark-lint-table-pipes "^2.0.0" + remark-lint-table-pipes "^3.0.0" remark-lint-unordered-list-marker-style "^2.0.0" -remark-preset-lint-recommended@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/remark-preset-lint-recommended/-/remark-preset-lint-recommended-4.0.1.tgz#2077b38706759277c0eb304c57453ebfa3e63207" - integrity sha512-zn+ImQbOVcAQVWLL0R0rFQ2Wy8JyWnuU3mJ8Zh0EVOckglcxByssvTbKqPih3Lh8ogpE38EfnC3a/vshj4Jx6A== +remark-preset-lint-recommended@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/remark-preset-lint-recommended/-/remark-preset-lint-recommended-5.0.0.tgz#cc0da5bf532a47392e01ad2ee34c8076edad1207" + integrity sha512-uu+Ab8JCwMMaKvvB0LOWTWtM3uAvJbKQM/oyWCEJqj7lUVNTKZS575Ro5rKM3Dx7kQjjR1iw0e99bpAYTc5xNA== dependencies: - remark-lint "^7.0.0" + remark-lint "^8.0.0" remark-lint-final-newline "^1.0.0" remark-lint-hard-break-spaces "^2.0.0" - remark-lint-list-item-bullet-indent "^2.0.0" + remark-lint-list-item-bullet-indent "^3.0.0" remark-lint-list-item-indent "^2.0.0" remark-lint-no-auto-link-without-protocol "^2.0.0" - remark-lint-no-blockquote-without-marker "^3.0.0" + remark-lint-no-blockquote-without-marker "^4.0.0" remark-lint-no-duplicate-definitions "^2.0.0" - remark-lint-no-heading-content-indent "^2.0.0" - remark-lint-no-inline-padding "^2.0.0" + remark-lint-no-heading-content-indent "^3.0.0" + remark-lint-no-inline-padding "^3.0.0" remark-lint-no-literal-urls "^2.0.0" remark-lint-no-shortcut-reference-image "^2.0.0" remark-lint-no-shortcut-reference-link "^2.0.0" - remark-lint-no-undefined-references "^2.0.0" + remark-lint-no-undefined-references "^3.0.0" remark-lint-no-unused-definitions "^2.0.0" remark-lint-ordered-list-marker-style "^2.0.0" @@ -22710,7 +22726,7 @@ remark-stringify@^6.0.0: unherit "^1.0.4" xtend "^4.0.1" -remark-stringify@^8.0.0, remark-stringify@^8.1.0: +remark-stringify@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-8.1.0.tgz#1e555f4402e445c364fb23d12fc5f5e0337ec8b7" integrity sha512-FSPZv1ds76oAZjurhhuV5qXSUSoz6QRPuwYK38S41sLHwg4oB7ejnmZshj7qwjgYLf93kdz6BOX9j5aidNE7rA== @@ -22752,15 +22768,6 @@ remark@^10.0.1: remark-stringify "^6.0.0" unified "^7.0.0" -remark@^12.0.0, remark@^12.0.1: - version "12.0.1" - resolved "https://registry.yarnpkg.com/remark/-/remark-12.0.1.tgz#f1ddf68db7be71ca2bad0a33cd3678b86b9c709f" - integrity sha512-gS7HDonkdIaHmmP/+shCPejCEEW+liMp/t/QwmF0Xt47Rpuhl32lLtDV1uKWvGoq+kxr5jSgg5oAIpGuyULjUw== - dependencies: - remark-parse "^8.0.0" - remark-stringify "^8.0.0" - unified "^9.0.0" - remark@^13.0.0: version "13.0.0" resolved "https://registry.yarnpkg.com/remark/-/remark-13.0.0.tgz#d15d9bf71a402f40287ebe36067b66d54868e425" @@ -26153,7 +26160,7 @@ unified@9.1.0: trough "^1.0.0" vfile "^4.0.0" -unified@9.2.0, unified@^9.0.0, unified@^9.1.0, unified@^9.2.0: +unified@9.2.0, unified@^9.1.0, unified@^9.2.0: version "9.2.0" resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.0.tgz#67a62c627c40589edebbf60f53edfd4d822027f8" integrity sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg== @@ -26329,6 +26336,11 @@ unist-util-position@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-3.0.1.tgz#8e220c24658239bf7ddafada5725ed0ea1ebbc26" +unist-util-position@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-3.1.0.tgz#1c42ee6301f8d52f47d14f62bbdb796571fa2d47" + integrity sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA== + unist-util-remove-position@^1.0.0, unist-util-remove-position@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.4.tgz#ec037348b6102c897703eee6d0294ca4755a2020" @@ -26866,6 +26878,11 @@ vfile-location@^3.0.0: resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-3.0.1.tgz#d78677c3546de0f7cd977544c367266764d31bb3" integrity sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ== +vfile-location@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-3.2.0.tgz#d8e41fbcbd406063669ebf6c33d56ae8721d0f3c" + integrity sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA== + vfile-message@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-1.0.1.tgz#51a2ccd8a6b97a7980bb34efb9ebde9632e93677" From 2b813a6420a161ba906b8867486bdb49e27d1030 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 20:01:54 +0700 Subject: [PATCH 20/32] gatsby-remark-katex: update snapshot --- .../src/__tests__/__snapshots__/index.js.snap | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/packages/gatsby-remark-katex/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-katex/src/__tests__/__snapshots__/index.js.snap index 92fbc81f264b4..5bb93924e3240 100644 --- a/packages/gatsby-remark-katex/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-katex/src/__tests__/__snapshots__/index.js.snap @@ -15,16 +15,18 @@ Object { ], "hName": "span", "hProperties": Object { - "className": "inlineMath", + "className": Array [ + "math", + "math-inline", + ], }, }, - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -35,13 +37,12 @@ Object { "value": "a2+b2=c2a^2 + b^2 = c^2a2+b2=c2", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -82,16 +83,18 @@ Object { ], "hName": "span", "hProperties": Object { - "className": "inlineMath", + "className": Array [ + "math", + "math-inline", + ], }, }, - "position": Position { + "position": Object { "end": Object { "column": 18, "line": 1, "offset": 17, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -102,13 +105,12 @@ Object { "value": "a2+b2=c2a^2 + b^2 = c^2a2+b2=c2", }, ], - "position": Position { + "position": Object { "end": Object { "column": 18, "line": 1, "offset": 17, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -147,19 +149,19 @@ Object { ], "hName": "div", "hProperties": Object { - "className": "math", + "className": Array [ + "math", + "math-display", + ], }, }, - "position": Position { + "meta": null, + "position": Object { "end": Object { "column": 3, "line": 3, "offset": 21, }, - "indent": Array [ - 1, - 1, - ], "start": Object { "column": 1, "line": 1, From 55a6736949fc6accac1df9cc690b9848fe2b16d1 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 20:02:34 +0700 Subject: [PATCH 21/32] gatsby-remark-responsive-iframe: update snapshot --- .../src/__tests__/__snapshots__/index.js.snap | 54 ++++++------------- 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/packages/gatsby-remark-responsive-iframe/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-responsive-iframe/src/__tests__/__snapshots__/index.js.snap index f5b8656954908..b6c63aae15859 100644 --- a/packages/gatsby-remark-responsive-iframe/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-responsive-iframe/src/__tests__/__snapshots__/index.js.snap @@ -2,45 +2,21 @@ exports[`gatsby-remark-responsive-iframe can copy JSX images 1`] = `"
    "`; -exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: '100%' '100' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: '100' '100%' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: '100' 'invalid' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: 'invalid' '100' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: '100%' '100' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: '100' '100%' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: '100' 'invalid' 1`] = ` -" - " -`; - -exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: 'invalid' '100' 1`] = ` -" - " -`; +exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: '100%' '100' 1`] = `" "`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: '100' '100%' 1`] = `" "`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: '100' 'invalid' 1`] = `" "`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an iframe with dimensions: 'invalid' '100' 1`] = `" "`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: '100%' '100' 1`] = `""`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: '100' '100%' 1`] = `""`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: '100' 'invalid' 1`] = `""`; + +exports[`gatsby-remark-responsive-iframe doesn't transform an object with dimensions: 'invalid' '100' 1`] = `""`; exports[`gatsby-remark-responsive-iframe transforms an iframe and maintains existing styles 1`] = `"
    "`; From 2d6afe295ffb25b5babc53c88d3b7ef5d3fa585b Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 20:27:10 +0700 Subject: [PATCH 22/32] gatsby-remark-autolink-headers: update snapshot --- .../src/__tests__/__snapshots__/index.js.snap | 60 +++++++------------ 1 file changed, 20 insertions(+), 40 deletions(-) diff --git a/packages/gatsby-remark-embed-snippet/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-embed-snippet/src/__tests__/__snapshots__/index.js.snap index 4684c1ab908d6..1f55564b25bfd 100644 --- a/packages/gatsby-remark-embed-snippet/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-embed-snippet/src/__tests__/__snapshots__/index.js.snap @@ -7,13 +7,12 @@ Object { "children": Array [ Object { "lang": "css", - "position": Position { + "position": Object { "end": Object { "column": 24, "line": 1, "offset": 23, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -24,13 +23,12 @@ Object { "value": "html { height: 100%; }", }, ], - "position": Position { + "position": Object { "end": Object { "column": 24, "line": 1, "offset": 23, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -63,13 +61,12 @@ Object { "children": Array [ Object { "lang": "html", - "position": Position { + "position": Object { "end": Object { "column": 25, "line": 1, "offset": 24, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -80,13 +77,12 @@ Object { "value": "", }, ], - "position": Position { + "position": Object { "end": Object { "column": 25, "line": 1, "offset": 24, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -119,13 +115,12 @@ Object { "children": Array [ Object { "lang": "jsx", - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -136,13 +131,12 @@ Object { "value": "const foo = \\"bar\\";", }, ], - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -175,13 +169,12 @@ Object { "children": Array [ Object { "lang": "markup", - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -192,13 +185,12 @@ Object { "value": "# Hi", }, ], - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -231,13 +223,12 @@ Object { "children": Array [ Object { "lang": "rust", - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -248,13 +239,12 @@ Object { "value": "extern crate lazy_static;", }, ], - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -287,13 +277,12 @@ Object { "children": Array [ Object { "lang": "yaml", - "position": Position { + "position": Object { "end": Object { "column": 25, "line": 1, "offset": 24, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -304,13 +293,12 @@ Object { "value": "name: Brian Vaughn", }, ], - "position": Position { + "position": Object { "end": Object { "column": 25, "line": 1, "offset": 24, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -343,13 +331,12 @@ Object { "children": Array [ Object { "lang": "bash", - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -360,13 +347,12 @@ Object { "value": "pwd", }, ], - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -399,13 +385,12 @@ Object { "children": Array [ Object { "lang": "none", - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -416,13 +401,12 @@ Object { "value": "const foo = \\"bar\\";", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -455,13 +439,12 @@ Object { "children": Array [ Object { "lang": "jsx", - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -472,13 +455,12 @@ Object { "value": "const foo = \\"bar\\";", }, ], - "position": Position { + "position": Object { "end": Object { "column": 23, "line": 1, "offset": 22, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -512,13 +494,12 @@ Object { Object { "children": Array [ Object { - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -529,13 +510,12 @@ Object { "value": "console.log(\\"hi\\")", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, From a5ae815c9d88f6b9f5989b3f09ef369e219be2f5 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 20:28:25 +0700 Subject: [PATCH 23/32] gatsby-remark-autolink-headers: update snapshot --- .../src/__tests__/__snapshots__/index.js.snap | 66 +++++++------------ 1 file changed, 22 insertions(+), 44 deletions(-) diff --git a/packages/gatsby-remark-autolink-headers/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-autolink-headers/src/__tests__/__snapshots__/index.js.snap index 45b4182438a97..71e6da32ac43e 100644 --- a/packages/gatsby-remark-autolink-headers/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-autolink-headers/src/__tests__/__snapshots__/index.js.snap @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, From 712e5bba774e8a8fc010f91ffa97f9aba0d79f0e Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 20:55:35 +0700 Subject: [PATCH 24/32] gatsby-remark-autolink-headers: fix tests --- .../src/__tests__/index.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/gatsby-remark-autolink-headers/src/__tests__/index.js b/packages/gatsby-remark-autolink-headers/src/__tests__/index.js index af6e9b9e19306..f0e45a57c562a 100644 --- a/packages/gatsby-remark-autolink-headers/src/__tests__/index.js +++ b/packages/gatsby-remark-autolink-headers/src/__tests__/index.js @@ -192,7 +192,7 @@ describe(`gatsby-remark-autolink-headers`, () => { # With *Bold* {#custom-withbold} -# Invalid {#this_is_italic} +# Italic {#this_is_italic} # No custom ID @@ -222,8 +222,8 @@ describe(`gatsby-remark-autolink-headers`, () => { text: `With Bold`, }, { - id: `invalid-thisisitalic`, - text: `Invalid {#thisisitalic}`, + id: `this_is_italic`, + text: `Italic`, }, { id: `no-custom-id`, @@ -294,9 +294,9 @@ describe(`gatsby-remark-autolink-headers`, () => { it(`only adds ids to markdown headings whose heading type is included in the passed elements prop`, () => { const markdownAST = remark.parse(` # Heading One - + ## Heading Two - + ### Heading Three `) @@ -314,9 +314,9 @@ describe(`gatsby-remark-autolink-headers`, () => { it(`does not add data to markdown headings when an empty array elements prop is passed`, () => { const markdownAST = remark.parse(` # Heading One - + ## Heading Two - + ### Heading Three `) @@ -330,15 +330,15 @@ describe(`gatsby-remark-autolink-headers`, () => { it(`allows all six heading depths to be passed in the elements prop`, () => { const markdownAST = remark.parse(` # Heading One - + ## Heading Two - + ### Heading Three #### Heading Four - + ##### Heading Five - + ###### Heading Six `) From e0a4418b8f2e0b5705a562b285e9265d7ef68543 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 20:57:14 +0700 Subject: [PATCH 25/32] gatsby-remark-code-repls: update snapshot --- .../src/__tests__/__snapshots__/index.js.snap | 69 +++++++------------ 1 file changed, 23 insertions(+), 46 deletions(-) diff --git a/packages/gatsby-remark-code-repls/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-code-repls/src/__tests__/__snapshots__/index.js.snap index a67b88ba8baf5..f8deed1431ba3 100644 --- a/packages/gatsby-remark-code-repls/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-code-repls/src/__tests__/__snapshots__/index.js.snap @@ -10,13 +10,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 35, "line": 1, "offset": 34, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -52,13 +51,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -94,13 +92,12 @@ Object { "value": "Click me", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -136,13 +133,12 @@ Object { "value": "Custom link text", }, ], - "position": Position { + "position": Object { "end": Object { "column": 36, "line": 1, "offset": 35, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -178,13 +174,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -220,13 +215,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 41, "line": 1, "offset": 40, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -262,13 +256,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 26, "line": 1, "offset": 25, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -304,13 +297,12 @@ Object { "value": "Click me", }, ], - "position": Position { + "position": Object { "end": Object { "column": 26, "line": 1, "offset": 25, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -346,13 +338,12 @@ Object { "value": "Custom link text", }, ], - "position": Position { + "position": Object { "end": Object { "column": 42, "line": 1, "offset": 41, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -388,13 +379,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 26, "line": 1, "offset": 25, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -430,13 +420,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 41, "line": 1, "offset": 40, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -472,13 +461,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 41, "line": 1, "offset": 40, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -514,13 +502,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 95, "line": 1, "offset": 94, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -556,13 +543,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 37, "line": 1, "offset": 36, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -598,13 +584,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 22, "line": 1, "offset": 21, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -640,13 +625,12 @@ Object { "value": "Click me", }, ], - "position": Position { + "position": Object { "end": Object { "column": 22, "line": 1, "offset": 21, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -682,13 +666,12 @@ Object { "value": "Custom link text", }, ], - "position": Position { + "position": Object { "end": Object { "column": 38, "line": 1, "offset": 37, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -724,13 +707,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 22, "line": 1, "offset": 21, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -766,13 +748,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 35, "line": 1, "offset": 34, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -808,13 +789,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -850,13 +830,12 @@ Object { "value": "Click me", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -892,13 +871,12 @@ Object { "value": "Custom link text", }, ], - "position": Position { + "position": Object { "end": Object { "column": 36, "line": 1, "offset": 35, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, @@ -934,13 +912,12 @@ Object { "value": "REPL", }, ], - "position": Position { + "position": Object { "end": Object { "column": 20, "line": 1, "offset": 19, }, - "indent": Array [], "start": Object { "column": 1, "line": 1, From 765f18c29c392464e68437483bad195f1dc6c021 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 21:12:07 +0700 Subject: [PATCH 26/32] gatsby-remark-smartypants: update snapshot --- .../src/__tests__/__snapshots__/index.js.snap | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/gatsby-remark-smartypants/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-remark-smartypants/src/__tests__/__snapshots__/index.js.snap index 263e78cb2dd38..12daac76c69f2 100644 --- a/packages/gatsby-remark-smartypants/src/__tests__/__snapshots__/index.js.snap +++ b/packages/gatsby-remark-smartypants/src/__tests__/__snapshots__/index.js.snap @@ -1,6 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`gatsby-remark-smartypants applies smartypants to text nodes 1`] = ` -"He said, “A ‘simple’ english sentence… - " -`; +exports[`gatsby-remark-smartypants applies smartypants to text nodes 1`] = `"He said, “A ‘simple’ english sentence…"`; From ca18fbe765de747e0f473851e63492f8799f0895 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 23 Feb 2021 21:14:05 +0700 Subject: [PATCH 27/32] gatsby-remark-custom-blocks: disable plugin tests There is no version of `remark-custom-blocks` that is compatible with remark v13 yet. See https://github.com/zestedesavoir/zmarkdown/issues/416 --- packages/gatsby-remark-custom-blocks/src/__tests__/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-remark-custom-blocks/src/__tests__/index.js b/packages/gatsby-remark-custom-blocks/src/__tests__/index.js index cc3b2e3efdf37..1a8fdde50f6af 100644 --- a/packages/gatsby-remark-custom-blocks/src/__tests__/index.js +++ b/packages/gatsby-remark-custom-blocks/src/__tests__/index.js @@ -2,7 +2,8 @@ const Remark = require(`remark`) const find = require(`unist-util-find`) const plugin = require(`../index`) -describe(`gatsby-remark-custom-blocks`, () => { +// TODO: re-enable when https://github.com/zestedesavoir/zmarkdown/issues/416 is done +describe.skip(`gatsby-remark-custom-blocks`, () => { let remark beforeEach(() => { From 93dc1a58ac1f62e2f476d7c1dee61b857b511974 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Fri, 19 Mar 2021 01:39:52 +0700 Subject: [PATCH 28/32] dummy commit for canary --- packages/gatsby-remark-autolink-headers/README.md | 1 + packages/gatsby-remark-code-repls/README.md | 1 + packages/gatsby-remark-copy-linked-files/README.md | 1 + packages/gatsby-remark-custom-blocks/README.md | 1 + packages/gatsby-remark-embed-snippet/README.md | 1 + packages/gatsby-remark-graphviz/README.md | 1 + packages/gatsby-remark-images-contentful/README.md | 1 + packages/gatsby-remark-images/README.md | 1 + packages/gatsby-remark-katex/README.md | 1 + packages/gatsby-remark-prismjs/README.md | 1 + packages/gatsby-remark-responsive-iframe/README.md | 1 + packages/gatsby-remark-smartypants/README.md | 1 + packages/gatsby-transformer-remark/README.md | 1 + 13 files changed, 13 insertions(+) diff --git a/packages/gatsby-remark-autolink-headers/README.md b/packages/gatsby-remark-autolink-headers/README.md index 6922c56b43396..9cd9006279dbb 100644 --- a/packages/gatsby-remark-autolink-headers/README.md +++ b/packages/gatsby-remark-autolink-headers/README.md @@ -100,4 +100,5 @@ a.anchor { } ``` + Note: There are a variety of approaches to styling your Gatsby site, see [styling documentation](https://www.gatsbyjs.com/docs/styling/) for more detail. diff --git a/packages/gatsby-remark-code-repls/README.md b/packages/gatsby-remark-code-repls/README.md index ca491b9acf5a7..6bb8023bf4e9d 100644 --- a/packages/gatsby-remark-code-repls/README.md +++ b/packages/gatsby-remark-code-repls/README.md @@ -122,6 +122,7 @@ specified examples directory. (This will avoid broken links at runtime.) `npm install gatsby-remark-code-repls` + ## Usage ```javascript diff --git a/packages/gatsby-remark-copy-linked-files/README.md b/packages/gatsby-remark-copy-linked-files/README.md index e84328f7431bb..a5d43a982ab06 100644 --- a/packages/gatsby-remark-copy-linked-files/README.md +++ b/packages/gatsby-remark-copy-linked-files/README.md @@ -216,6 +216,7 @@ plugins: [ - img - `![Image](my-img.png)` - link - `[Link](myFile.txt)` + ### Supported HTML tags - `` diff --git a/packages/gatsby-remark-custom-blocks/README.md b/packages/gatsby-remark-custom-blocks/README.md index 2dd250894fd01..277a970f446f5 100644 --- a/packages/gatsby-remark-custom-blocks/README.md +++ b/packages/gatsby-remark-custom-blocks/README.md @@ -90,6 +90,7 @@ Here is an example configuration for using details: }, ``` + And here is the html output considering the same markdown as before: ```html diff --git a/packages/gatsby-remark-embed-snippet/README.md b/packages/gatsby-remark-embed-snippet/README.md index 248f9c7ff23b7..043df81db6635 100644 --- a/packages/gatsby-remark-embed-snippet/README.md +++ b/packages/gatsby-remark-embed-snippet/README.md @@ -59,6 +59,7 @@ module.exports = { }, ``` + ### Example 2: Specify that code snippet files are under a directory called `snippets` ```js diff --git a/packages/gatsby-remark-graphviz/README.md b/packages/gatsby-remark-graphviz/README.md index a31ad2b26a921..b6e4ff1e0160b 100644 --- a/packages/gatsby-remark-graphviz/README.md +++ b/packages/gatsby-remark-graphviz/README.md @@ -28,6 +28,7 @@ plugins: [ ], ``` + Then, add `dot` code blocks to your markdown. E.g ```dot diff --git a/packages/gatsby-remark-images-contentful/README.md b/packages/gatsby-remark-images-contentful/README.md index c6d81abd45773..58f6b5c7d6f9b 100644 --- a/packages/gatsby-remark-images-contentful/README.md +++ b/packages/gatsby-remark-images-contentful/README.md @@ -17,6 +17,7 @@ In the processing, it makes images responsive by: `npm install gatsby-remark-images-contentful` + ## How to use ```javascript diff --git a/packages/gatsby-remark-images/README.md b/packages/gatsby-remark-images/README.md index d28bb3bb080ba..286985a07940a 100644 --- a/packages/gatsby-remark-images/README.md +++ b/packages/gatsby-remark-images/README.md @@ -17,6 +17,7 @@ In the processing, it makes images responsive by: `npm install gatsby-remark-images gatsby-plugin-sharp` + ## How to use ```javascript diff --git a/packages/gatsby-remark-katex/README.md b/packages/gatsby-remark-katex/README.md index 051f3b62da434..4f21f621b9c33 100644 --- a/packages/gatsby-remark-katex/README.md +++ b/packages/gatsby-remark-katex/README.md @@ -7,6 +7,7 @@ `npm install gatsby-transformer-remark gatsby-remark-katex katex` + ## How to use ```javascript diff --git a/packages/gatsby-remark-prismjs/README.md b/packages/gatsby-remark-prismjs/README.md index 20e854ae5b314..ff9401d5f0ef1 100644 --- a/packages/gatsby-remark-prismjs/README.md +++ b/packages/gatsby-remark-prismjs/README.md @@ -7,6 +7,7 @@ Adds syntax highlighting to code blocks in markdown files using `npm install gatsby-transformer-remark gatsby-remark-prismjs prismjs` + ## How to use ```javascript diff --git a/packages/gatsby-remark-responsive-iframe/README.md b/packages/gatsby-remark-responsive-iframe/README.md index 095454d76a82f..fcc94b10b55b7 100644 --- a/packages/gatsby-remark-responsive-iframe/README.md +++ b/packages/gatsby-remark-responsive-iframe/README.md @@ -9,6 +9,7 @@ container. `npm install gatsby-remark-responsive-iframe` + ## How to use ```javascript diff --git a/packages/gatsby-remark-smartypants/README.md b/packages/gatsby-remark-smartypants/README.md index 970ddc617f1e5..710e501b328dc 100644 --- a/packages/gatsby-remark-smartypants/README.md +++ b/packages/gatsby-remark-smartypants/README.md @@ -7,6 +7,7 @@ Replaces “dumb” punctuation marks with “smart” punctuation marks using t `npm install gatsby-remark-smartypants` + ## How to use ```javascript diff --git a/packages/gatsby-transformer-remark/README.md b/packages/gatsby-transformer-remark/README.md index f1308879837e9..c96bfc6af6979 100644 --- a/packages/gatsby-transformer-remark/README.md +++ b/packages/gatsby-transformer-remark/README.md @@ -6,6 +6,7 @@ Parses Markdown files using [Remark](http://remark.js.org/). `npm install gatsby-transformer-remark` + ## How to use ```javascript From 5de695d6939ff93ccc18b55b0c40230e984967bd Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Wed, 7 Apr 2021 20:01:21 +0700 Subject: [PATCH 29/32] run prettier and update yarn.lock --- packages/gatsby-remark-autolink-headers/README.md | 1 - packages/gatsby-remark-code-repls/README.md | 1 - packages/gatsby-remark-copy-linked-files/README.md | 1 - packages/gatsby-remark-custom-blocks/README.md | 1 - packages/gatsby-remark-embed-snippet/README.md | 1 - packages/gatsby-remark-graphviz/README.md | 1 - packages/gatsby-remark-images-contentful/README.md | 1 - packages/gatsby-remark-images/README.md | 1 - packages/gatsby-remark-katex/README.md | 1 - packages/gatsby-remark-prismjs/README.md | 1 - packages/gatsby-remark-responsive-iframe/README.md | 1 - packages/gatsby-remark-smartypants/README.md | 1 - packages/gatsby-transformer-remark/README.md | 1 - yarn.lock | 9 ++++++++- 14 files changed, 8 insertions(+), 14 deletions(-) diff --git a/packages/gatsby-remark-autolink-headers/README.md b/packages/gatsby-remark-autolink-headers/README.md index 9cd9006279dbb..6922c56b43396 100644 --- a/packages/gatsby-remark-autolink-headers/README.md +++ b/packages/gatsby-remark-autolink-headers/README.md @@ -100,5 +100,4 @@ a.anchor { } ``` - Note: There are a variety of approaches to styling your Gatsby site, see [styling documentation](https://www.gatsbyjs.com/docs/styling/) for more detail. diff --git a/packages/gatsby-remark-code-repls/README.md b/packages/gatsby-remark-code-repls/README.md index 6bb8023bf4e9d..ca491b9acf5a7 100644 --- a/packages/gatsby-remark-code-repls/README.md +++ b/packages/gatsby-remark-code-repls/README.md @@ -122,7 +122,6 @@ specified examples directory. (This will avoid broken links at runtime.) `npm install gatsby-remark-code-repls` - ## Usage ```javascript diff --git a/packages/gatsby-remark-copy-linked-files/README.md b/packages/gatsby-remark-copy-linked-files/README.md index a5d43a982ab06..e84328f7431bb 100644 --- a/packages/gatsby-remark-copy-linked-files/README.md +++ b/packages/gatsby-remark-copy-linked-files/README.md @@ -216,7 +216,6 @@ plugins: [ - img - `![Image](my-img.png)` - link - `[Link](myFile.txt)` - ### Supported HTML tags - `` diff --git a/packages/gatsby-remark-custom-blocks/README.md b/packages/gatsby-remark-custom-blocks/README.md index 277a970f446f5..2dd250894fd01 100644 --- a/packages/gatsby-remark-custom-blocks/README.md +++ b/packages/gatsby-remark-custom-blocks/README.md @@ -90,7 +90,6 @@ Here is an example configuration for using details: }, ``` - And here is the html output considering the same markdown as before: ```html diff --git a/packages/gatsby-remark-embed-snippet/README.md b/packages/gatsby-remark-embed-snippet/README.md index 043df81db6635..248f9c7ff23b7 100644 --- a/packages/gatsby-remark-embed-snippet/README.md +++ b/packages/gatsby-remark-embed-snippet/README.md @@ -59,7 +59,6 @@ module.exports = { }, ``` - ### Example 2: Specify that code snippet files are under a directory called `snippets` ```js diff --git a/packages/gatsby-remark-graphviz/README.md b/packages/gatsby-remark-graphviz/README.md index b6e4ff1e0160b..a31ad2b26a921 100644 --- a/packages/gatsby-remark-graphviz/README.md +++ b/packages/gatsby-remark-graphviz/README.md @@ -28,7 +28,6 @@ plugins: [ ], ``` - Then, add `dot` code blocks to your markdown. E.g ```dot diff --git a/packages/gatsby-remark-images-contentful/README.md b/packages/gatsby-remark-images-contentful/README.md index 58f6b5c7d6f9b..c6d81abd45773 100644 --- a/packages/gatsby-remark-images-contentful/README.md +++ b/packages/gatsby-remark-images-contentful/README.md @@ -17,7 +17,6 @@ In the processing, it makes images responsive by: `npm install gatsby-remark-images-contentful` - ## How to use ```javascript diff --git a/packages/gatsby-remark-images/README.md b/packages/gatsby-remark-images/README.md index 286985a07940a..d28bb3bb080ba 100644 --- a/packages/gatsby-remark-images/README.md +++ b/packages/gatsby-remark-images/README.md @@ -17,7 +17,6 @@ In the processing, it makes images responsive by: `npm install gatsby-remark-images gatsby-plugin-sharp` - ## How to use ```javascript diff --git a/packages/gatsby-remark-katex/README.md b/packages/gatsby-remark-katex/README.md index 4f21f621b9c33..051f3b62da434 100644 --- a/packages/gatsby-remark-katex/README.md +++ b/packages/gatsby-remark-katex/README.md @@ -7,7 +7,6 @@ `npm install gatsby-transformer-remark gatsby-remark-katex katex` - ## How to use ```javascript diff --git a/packages/gatsby-remark-prismjs/README.md b/packages/gatsby-remark-prismjs/README.md index ff9401d5f0ef1..20e854ae5b314 100644 --- a/packages/gatsby-remark-prismjs/README.md +++ b/packages/gatsby-remark-prismjs/README.md @@ -7,7 +7,6 @@ Adds syntax highlighting to code blocks in markdown files using `npm install gatsby-transformer-remark gatsby-remark-prismjs prismjs` - ## How to use ```javascript diff --git a/packages/gatsby-remark-responsive-iframe/README.md b/packages/gatsby-remark-responsive-iframe/README.md index fcc94b10b55b7..095454d76a82f 100644 --- a/packages/gatsby-remark-responsive-iframe/README.md +++ b/packages/gatsby-remark-responsive-iframe/README.md @@ -9,7 +9,6 @@ container. `npm install gatsby-remark-responsive-iframe` - ## How to use ```javascript diff --git a/packages/gatsby-remark-smartypants/README.md b/packages/gatsby-remark-smartypants/README.md index 710e501b328dc..970ddc617f1e5 100644 --- a/packages/gatsby-remark-smartypants/README.md +++ b/packages/gatsby-remark-smartypants/README.md @@ -7,7 +7,6 @@ Replaces “dumb” punctuation marks with “smart” punctuation marks using t `npm install gatsby-remark-smartypants` - ## How to use ```javascript diff --git a/packages/gatsby-transformer-remark/README.md b/packages/gatsby-transformer-remark/README.md index c96bfc6af6979..f1308879837e9 100644 --- a/packages/gatsby-transformer-remark/README.md +++ b/packages/gatsby-transformer-remark/README.md @@ -6,7 +6,6 @@ Parses Markdown files using [Remark](http://remark.js.org/). `npm install gatsby-transformer-remark` - ## How to use ```javascript diff --git a/yarn.lock b/yarn.lock index c45ccc042c7ef..eb87afb01a77f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15815,6 +15815,13 @@ jws@^3.2.2: jwa "^1.4.1" safe-buffer "^5.0.1" +katex@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/katex/-/katex-0.12.0.tgz#2fb1c665dbd2b043edcf8a1f5c555f46beaa0cb9" + integrity sha512-y+8btoc/CK70XqcHqjxiGWBOeIL8upbS0peTPXTvgrh21n1RiWWcIpSWM+4uXq+IAgNh9YYQWdc7LVDPDAEEAg== + dependencies: + commander "^2.19.0" + katex@^0.13.0: version "0.13.0" resolved "https://registry.yarnpkg.com/katex/-/katex-0.13.0.tgz#62900e56c1ad8fdf7da23399e50d7a7b690b39ab" @@ -23421,7 +23428,7 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: +semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== From 0eca69469b64db92d1fd6579436dd6ffb998c957 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Thu, 8 Apr 2021 17:14:15 +0700 Subject: [PATCH 30/32] gatsby-transformer-remark: update unified and unist-utils --- .../gatsby-transformer-remark/package.json | 8 +++---- .../src/extend-node-type.js | 16 ++++++------- yarn.lock | 23 +++++++++++++++++-- 3 files changed, 33 insertions(+), 14 deletions(-) diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index 03ecab25b1aec..24fcaa75f9eb9 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -24,10 +24,10 @@ "retext-english": "^3.0.4", "sanitize-html": "^1.27.5", "underscore.string": "^3.3.5", - "unified": "^6.2.0", - "unist-util-remove-position": "^1.1.4", - "unist-util-select": "^1.5.0", - "unist-util-visit": "^1.4.1" + "unified": "^9.2.1", + "unist-util-remove-position": "^3.0.0", + "unist-util-select": "^3.0.4", + "unist-util-visit": "^2.0.3" }, "devDependencies": { "@babel/cli": "^7.12.1", diff --git a/packages/gatsby-transformer-remark/src/extend-node-type.js b/packages/gatsby-transformer-remark/src/extend-node-type.js index 548b2eed5c929..9f3bccbf14ee1 100644 --- a/packages/gatsby-transformer-remark/src/extend-node-type.js +++ b/packages/gatsby-transformer-remark/src/extend-node-type.js @@ -1,5 +1,5 @@ const Remark = require(`remark`) -const select = require(`unist-util-select`) +const { selectAll } = require(`unist-util-select`) const _ = require(`lodash`) const visit = require(`unist-util-visit`) const toHAST = require(`mdast-util-to-hast`) @@ -175,7 +175,7 @@ module.exports = function remarkExtendNodeType( parseString: string => parseString(string, markdownNode), generateHTML: ast => hastToHTML(markdownASTToHTMLAst(ast), { - allowDangerousHTML: true, + allowDangerousHtml: true, }), } @@ -268,7 +268,7 @@ module.exports = function remarkExtendNodeType( } const ast = await getAST(markdownNode) - const headings = select(ast, `heading`).map(heading => { + const headings = selectAll(`heading`, ast).map(heading => { return { id: getHeadingID(heading), value: mdastToString(heading), @@ -338,8 +338,8 @@ module.exports = function remarkExtendNodeType( // addSlugToUrl may clear the map if (tocAst.map) { - toc = hastToHTML(toHAST(tocAst.map, { allowDangerousHTML: true }), { - allowDangerousHTML: true, + toc = hastToHTML(toHAST(tocAst.map, { allowDangerousHtml: true }), { + allowDangerousHtml: true, }) } } @@ -350,7 +350,7 @@ module.exports = function remarkExtendNodeType( function markdownASTToHTMLAst(ast) { return toHAST(ast, { - allowDangerousHTML: true, + allowDangerousHtml: true, handlers: { code: codeHandler }, }) } @@ -378,7 +378,7 @@ module.exports = function remarkExtendNodeType( const ast = await getHTMLAst(markdownNode) // Save new HTML to cache and return const html = hastToHTML(ast, { - allowDangerousHTML: true, + allowDangerousHtml: true, }) // Save new HTML to cache @@ -452,7 +452,7 @@ module.exports = function remarkExtendNodeType( }) return hastToHTML(excerptAST, { - allowDangerousHTML: true, + allowDangerousHtml: true, }) } diff --git a/yarn.lock b/yarn.lock index eb87afb01a77f..b821704fb485f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25920,7 +25920,7 @@ unified@9.2.0, unified@^9.1.0, unified@^9.2.0: trough "^1.0.0" vfile "^4.0.0" -unified@^6.0.0, unified@^6.1.5, unified@^6.2.0: +unified@^6.0.0, unified@^6.1.5: version "6.2.0" resolved "https://registry.yarnpkg.com/unified/-/unified-6.2.0.tgz#7fbd630f719126d67d40c644b7e3f617035f6dba" dependencies: @@ -25955,6 +25955,18 @@ unified@^8.0.0, unified@^8.4.2: trough "^1.0.0" vfile "^4.0.0" +unified@^9.2.1: + version "9.2.1" + resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.1.tgz#ae18d5674c114021bfdbdf73865ca60f410215a3" + integrity sha512-juWjuI8Z4xFg8pJbnEZ41b5xjGUWGHqXALmBZ3FC3WX0PIx1CZBIIJ6mXbYMcf6Yw4Fi0rFUTA1cdz/BglbOhA== + dependencies: + bail "^1.0.0" + extend "^3.0.0" + is-buffer "^2.0.0" + is-plain-obj "^2.0.0" + trough "^1.0.0" + vfile "^4.0.0" + union-value@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" @@ -26089,7 +26101,7 @@ unist-util-position@^3.1.0: resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-3.1.0.tgz#1c42ee6301f8d52f47d14f62bbdb796571fa2d47" integrity sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA== -unist-util-remove-position@^1.0.0, unist-util-remove-position@^1.1.4: +unist-util-remove-position@^1.0.0: version "1.1.4" resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.4.tgz#ec037348b6102c897703eee6d0294ca4755a2020" integrity sha512-tLqd653ArxJIPnKII6LMZwH+mb5q+n/GtXQZo6S6csPRs5zB0u79Yw8ouR3wTw8wxvdJFhpP6Y7jorWdCgLO0A== @@ -26103,6 +26115,13 @@ unist-util-remove-position@^2.0.0: dependencies: unist-util-visit "^2.0.0" +unist-util-remove-position@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-3.0.0.tgz#4cd19e82c8e665f462b6acfcfd0a8353235a88e9" + integrity sha512-17kIOuolVuK16LMb9KyMJlqdfCtlfQY5FjY3Sdo9iC7F5wqdXhNjMq0PBvMpkVNNnAmHxXssUW+rZ9T2zbP0Rg== + dependencies: + unist-util-visit "^2.0.0" + unist-util-remove@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/unist-util-remove/-/unist-util-remove-1.0.3.tgz#58ec193dfa84b52d5a055ffbc58e5444eb8031a3" From 5c5de00982e4a523078a99037e5fca0e0a3ad177 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Thu, 8 Apr 2021 19:16:58 +0700 Subject: [PATCH 31/32] gatsby-remark-autolink-headers: correct text in tests --- .../gatsby-remark-autolink-headers/src/__tests__/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby-remark-autolink-headers/src/__tests__/index.js b/packages/gatsby-remark-autolink-headers/src/__tests__/index.js index f0e45a57c562a..23c439581efd6 100644 --- a/packages/gatsby-remark-autolink-headers/src/__tests__/index.js +++ b/packages/gatsby-remark-autolink-headers/src/__tests__/index.js @@ -192,7 +192,7 @@ describe(`gatsby-remark-autolink-headers`, () => { # With *Bold* {#custom-withbold} -# Italic {#this_is_italic} +# Not italic {#not_italic_here} # No custom ID @@ -222,8 +222,8 @@ describe(`gatsby-remark-autolink-headers`, () => { text: `With Bold`, }, { - id: `this_is_italic`, - text: `Italic`, + id: `not_italic_here`, + text: `Not italic`, }, { id: `no-custom-id`, From bc03b7b0f0c61cbc592c2456157ed6853363c7ac Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Fri, 9 Apr 2021 16:17:33 +0700 Subject: [PATCH 32/32] gatsby-remark-custom-blocks: incompatibility notice --- packages/gatsby-remark-custom-blocks/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/gatsby-remark-custom-blocks/README.md b/packages/gatsby-remark-custom-blocks/README.md index 2dd250894fd01..c987d450333e8 100644 --- a/packages/gatsby-remark-custom-blocks/README.md +++ b/packages/gatsby-remark-custom-blocks/README.md @@ -1,5 +1,14 @@ # gatsby-remark-custom-blocks +> **Note**: this plugin is incompatible with `gatsby-transformer-remark@^4.0.0` +> because the upstream [`remark-custom-blocks`](https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks) +> package is not upgraded to remark 13 yet. +> +> The work on upgrading to remark 13 is in progress, so follow [this issue](https://github.com/zestedesavoir/zmarkdown/issues/416) +> for updates. +> +> The latest compatible version is `gatsby-transformer-remark@3.2.0`. + Adds custom blocks to `MarkdownRemark` using [remark-custom-blocks](https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks). Unlike in [gatsby-remark-component](https://www.gatsbyjs.org/packages/gatsby-remark-component/) where you can only use HTML within the custom component tag, custom blocks allow you to use markdown within the block.