cbou / markdox

Markdox is a documentation generator based on Dox and Markdown. It parse Javascript and even Coffeescript.
http://cbou.github.com/markdox
230 stars 27 forks source link

/* in code string being interpreted as comment for markdox #14

Open hergaiety opened 10 years ago

hergaiety commented 10 years ago

While making documentation for my gulpfile.js, the following code...

gulp.task('scripts', function() {
    gulp.src(root.src+dir.scripts+'**/*.js')
        .pipe(plugins.jslint({
            undef: true,
            unused: true
        }))
        .pipe(plugins.browserify({
            debug: true
        }))
        .pipe(gulp.dest(root.dest+dir.scripts));
});

Gets parsed by markdox into

js') .pipe(plugins.jslint({ undef: true, unused: true })) .pipe(plugins.browserify({ debug: true })) .pipe(gulp.dest(root.dest+dir.scripts)); });

/**

Since the string on the 2nd line is being interpreted as the beginning of a new comment. Is there a solution for this?

antoniobrandao commented 9 years ago

+1

gberger commented 9 years ago

Workaround:

'**/' + '*'
gberger commented 9 years ago

Or:

'**/\*'
gberger commented 9 years ago

Is this still the case?

antoniobrandao commented 9 years ago

Will test

gberger commented 9 years ago

bump