File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ module.exports.handler = function readme(argv /*: Object*/) {
114
114
} ;
115
115
116
116
// wrap the inject utility as an remark plugin
117
- function plugin ( remark , options ) {
117
+ function plugin ( options ) {
118
118
return function transform ( targetAst , file , next ) {
119
119
if ( ! inject ( options . section , targetAst , options . toInject ) ) {
120
120
return next ( new Error ( `Heading ${ options . section } not found.` ) ) ;
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ var tokenizeTutorial = makeTokenizer(
56
56
* This does not handle the `[text]({@link url})` and `[text]({@tutorial url})` forms of these tags.
57
57
* That's a JSDoc misfeature; just use regular markdown syntax instead: `[text](url)`.
58
58
*
59
- * @param {Object } processor - remark instance
59
+ * @param {Object } options - for the plugin
60
60
* @returns {undefined }
61
61
*/
62
- module . exports = function ( processor /*: Object*/ ) {
63
- var proto = processor . Parser . prototype ;
62
+ module . exports = function ( options /*: Object*/ ) {
63
+ var proto = this . Parser . prototype ;
64
64
proto . inlineTokenizers . tokenizeLink = tokenizeLink ;
65
65
proto . inlineTokenizers . tokenizeTutorial = tokenizeTutorial ;
66
66
var methods = proto . inlineMethods ;
Original file line number Diff line number Diff line change 44
44
"remark" : " ^7.0.0" ,
45
45
"remark-html" : " 6.0.0" ,
46
46
"remark-toc" : " ^4.0.0" ,
47
- "remote-origin-url" : " 0.5.2 " ,
47
+ "remote-origin-url" : " 0.4.0 " ,
48
48
"resolve" : " ^1.1.6" ,
49
49
"shelljs" : " ^0.7.5" ,
50
50
"stream-array" : " ^1.1.0" ,
57
57
"vfile-sort" : " ^2.0.0" ,
58
58
"vinyl" : " ^2.0.0" ,
59
59
"vinyl-fs" : " ^2.3.1" ,
60
- "yargs" : " ^7 .0.2 "
60
+ "yargs" : " ^6 .0.0 "
61
61
},
62
62
"devDependencies" : {
63
63
"are-we-flow-yet" : " ^1.0.0" ,
110
110
"*.js" : [
111
111
" prettier --write --single-quote"
112
112
]
113
+ },
114
+ "greenkeeper" : {
115
+ "ignore" : [
116
+ " remote-origin-url" ,
117
+ " yargs"
118
+ ]
113
119
}
114
120
}
You can’t perform that action at this time.
0 commit comments