-
Hi, I just started using Through some experiments I've narrowed it down to some sort of conflict with My {
"name": "tests",
"version": "0.1",
"description": "tests",
"main": "index.js",
"license": "MIT",
"private": true,
"dependencies": {
"@gridsome/transformer-remark": "^0.6.4",
"rehype-parse": "^7.0.1",
"rehype-stringify": "^8.0.0",
"remark": "^13.0.0",
"remark-html": "^13.0.1",
"remark-rehype": "^8.0.0",
"remark-frontmatter": "^3.0.0",
"unified-stream": "^1.0.6"
}
} My test script ( const process = require('process');
const unified = require('unified');
const unifiedStream = require('unified-stream');
const remarkParse = require('remark-parse');
const remarkFrontmatter = require('remark-frontmatter');
const remarkStringify = require('remark-stringify');
const processor = unified()
.use(remarkParse)
.use(remarkFrontmatter)
.use(remarkStringify);
process.stdin.pipe(unifiedStream(processor)).pipe(process.stdout); My example Markdown file ( ---
title: This is an example.
---
Some Markdown. When
When
And FWIW, here's a diff of my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Try the previous version of |
Beta Was this translation helpful? Give feedback.
-
Okay, so I found a solution. I added this dependency to my
I realized that I hadn't explicitly added that dependency, since I hadn't needed to. I think that's because I still don't really understand what happened and why. Node dependency management just got more confusing the more I delved into it. |
Beta Was this translation helpful? Give feedback.
Okay, so I found a solution.
I added this dependency to my
package.json
:I realized that I hadn't explicitly added that dependency, since I hadn't needed to. I think that's because
remark-parse
was already installed via another dependency? Somehow in the end, the top-level version ofremark-parse
I had installed without@gridsome/transformer-remark
was 9.0.0, but with it, it became 6.0.3. Which I assume breaks things.I still don't really understand what happened and why. Node dependency management just got more confusing the more I delved into it.