From 711d639d38165d87083e86112f3d83c5a3eba27e Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 1 Aug 2020 01:55:27 +0800 Subject: [PATCH] fix: include remark-frontmatter manually --- .eslintignore | 3 --- .remarkrc.js | 1 + package.json | 1 + yarn.lock | 16 +++++++++++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index be7b89378..4263688e9 100644 --- a/.eslintignore +++ b/.eslintignore @@ -15,9 +15,6 @@ packages/**/test/**/*.mdx packages/gatsby-theme-mdx/src/components/header.js packages/gatsby-theme-mdx/src/components/layout.js packages/gatsby-theme-mdx/src/components/search.js -packages/gatsby-theme-mdx/src/pages/conf.mdx -packages/gatsby-theme-mdx/src/pages/conf/confirm.mdx -packages/gatsby-theme-mdx/src/pages/conf/confirmed.mdx # tmp examples/vue diff --git a/.remarkrc.js b/.remarkrc.js index 2f49d2ce4..745bbecf5 100644 --- a/.remarkrc.js +++ b/.remarkrc.js @@ -4,6 +4,7 @@ const wooorm = require('retext-preset-wooorm') module.exports = { plugins: [ + 'remark-frontmatter', './packages/remark-mdx', 'preset-wooorm', 'preset-prettier', diff --git a/package.json b/package.json index d5643868d..e5868a1a4 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "rehype-add-classes": "1.0.0", "rehype-katex": "3.0.0", "remark-autolink-headings": "6.0.1", + "remark-frontmatter": "^2.0.0", "remark-math": "2.0.1", "remark-mdx": "^1.6.7", "remark-parse": "8.0.3", diff --git a/yarn.lock b/yarn.lock index ad27cf743..b46e2b92f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11084,6 +11084,13 @@ fastq@^1.6.0: dependencies: reusify "^1.0.4" +fault@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/fault/-/fault-1.0.4.tgz#eafcfc0a6d214fc94601e170df29954a4f842f13" + integrity sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA== + dependencies: + format "^0.2.0" + faye-websocket@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" @@ -11451,7 +11458,7 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" -format@^0.2.2: +format@^0.2.0, format@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b" integrity sha1-1hcBB+nv3E7TDJ3DkBbflCtctYs= @@ -21726,6 +21733,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== + dependencies: + fault "^1.0.1" + remark-github@^9.0.0: version "9.0.1" resolved "https://registry.yarnpkg.com/remark-github/-/remark-github-9.0.1.tgz#82d05783754b9756ae63984a4afd5282318fbab1"