We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The gulp task returns *.md no *.json output the code is below,
Thanks for your help
const gulp = require('gulp') const marked = require('marked') const listStream = require('list-stream'); marked.setOptions({ pedantic: true, smartypants: true }) gulp.task('markdown-json', () => { gulp.src([ './src/packages/**/**/*.md', '!./src/packages/**/node_modules/**/*.md' ]) .pipe(jsonMarkdown(marked)) .pipe(gulp.dest('dist/docs/json/')) })
single output file task/config
gulp.task('markdown-json', () => { gulp.src([ './src/packages/**/**/*.md', '!./src/packages/**/node_modules/**/*.md' ]) .pipe(listStream.obj()) .pipe(jsonMarkdown(marked)) .pipe(gulp.dest('dist/docs/json/')) })
The text was updated successfully, but these errors were encountered:
I have the same issue. Everything works correctly but the file extension of the output file is .md rather than .json.
Sorry, something went wrong.
I forgot to say, the gulp-rename package can probably help here:
https://www.npmjs.com/package/gulp-rename
var rename = require('gulp-rename') gulp.task('markdown-json', () => { gulp.src([ './src/packages/**/**/*.md', '!./src/packages/**/node_modules/**/*.md' ]) .pipe(jsonMarkdown(marked)) .pipe(rename({ extname: '.json' })) .pipe(gulp.dest('dist/docs/json/')) })
I'm using it for something else but it should be a simple solution.
Appears this bug was introduced in v1.1.0. Going back to v1.0.3 fixes this. (gulp-rename is also a solution)
Lock version of gulp-markdown-to-json to v1.0.3 to remove bug introdu…
4a1c661
…ced in v1.1.0: sparkartgroup/gulp-markdown-to-json#28
No branches or pull requests
The gulp task returns *.md no *.json output the code is below,
Thanks for your help
single output file task/config
The text was updated successfully, but these errors were encountered: