-
I'm trying to wrap my head around unified-engine, and whether it can be used for what I'd like to do. I'd like to take a directory full of many Markdown files in many subdirectories and write the output to a separate directory, maintaining the same directory tree, directory names, and filenames. Basically I'd like a copy of the original directory, but with certain modifications to the Markdown content. I found that I can direct the output to a different directory using options.output, but when I do that the directory structure gets flattened and all files end up in the same directory. Is there a way to get it to maintain the structure? Also, I was curious about whether there's a way to specify the output file extension? If I want to convert |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Nope, not supported. Some examples, with the following input files:
$ ./node_modules/.bin/remark -u html -o output/ input/
$ ./node_modules/.bin/remark -u html -o output/ input/ readme.md
$ ./node_modules/.bin/remark -u html -o output/ input/{a,b}
$ ./node_modules/.bin/remark -u html -o output/ **/*.md What should the structure of
Plugins can change |
Beta Was this translation helpful? Give feedback.
Nope, not supported.
I think Gulp does some interesting things here (which was briefly discussed before here), but how should it work?
Some examples, with the following input files:
What should the structure of
output/
be?Plugins can change
file
s. In the above examples,remark-html
is used, which setsextnames
of.html
, and hence the written files will have…