markdox icon indicating copy to clipboard operation
markdox copied to clipboard

/* in code string being interpreted as comment for markdox

Open hergaiety opened this issue 10 years ago • 6 comments

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?

hergaiety avatar May 01 '14 13:05 hergaiety

+1

antoniobrandao avatar Nov 11 '14 21:11 antoniobrandao

Workaround:

'**/' + '*'

gberger avatar Dec 03 '14 07:12 gberger

Or:

'**/\*'

gberger avatar Dec 03 '14 07:12 gberger

Is this still the case?

gberger avatar Apr 15 '15 15:04 gberger

Will test

antoniobrandao avatar Apr 15 '15 17:04 antoniobrandao

bump

gberger avatar Oct 06 '15 17:10 gberger