@@ -61,7 +61,7 @@ var PARAMETERS = new RegExp(
6161/**
6262 * Create an expression which matches a marker.
6363 *
64- * @param {string } name
64+ * @param {string } name - Plug-in name.
6565 * @return {RegExp }
6666 */
6767function marker ( name ) {
@@ -93,7 +93,7 @@ function marker(name) {
9393/**
9494 * Parse `value` into an object.
9595 *
96- * @param {string } value
96+ * @param {string } value - HTML comment.
9797 * @return {Object }
9898 */
9999function parameters ( value ) {
@@ -121,8 +121,9 @@ function parameters(value) {
121121/**
122122 * Factory to test if `node` matches `settings`.
123123 *
124- * @param {Object } settings
125- * @param {function(Object) } callback
124+ * @param {Object } settings - Configuration.
125+ * @param {Function } callback - Invoked iwht a matching
126+ * HTML node.
126127 * @return {Function }
127128 */
128129function testFactory ( settings , callback ) {
@@ -132,8 +133,8 @@ function testFactory(settings, callback) {
132133 /**
133134 * Test if `node` matches the bound settings.
134135 *
135- * @param {Node } node
136- * @param {Parser|Compiler } [context]
136+ * @param {MDASTNode } node - Node to check.
137+ * @param {Parser|Compiler } [context] - Context class.
137138 * @return {Object? }
138139 */
139140 function test ( node , context ) {
@@ -176,7 +177,7 @@ function testFactory(settings, callback) {
176177 * Parse factory.
177178 *
178179 * @param {Function } tokenize - Previous parser.
179- * @param {Object } settings
180+ * @param {Object } settings - Configuration.
180181 */
181182function parse ( tokenize , settings ) {
182183 var callback = settings . onparse ;
@@ -204,7 +205,7 @@ function parse(tokenize, settings) {
204205 * Stringify factory.
205206 *
206207 * @param {Function } compile - Previous compiler.
207- * @param {Object } settings
208+ * @param {Object } settings - Configuration.
208209 */
209210function stringify ( compile , settings ) {
210211 var callback = settings . onstringify ;
@@ -217,7 +218,7 @@ function stringify(compile, settings) {
217218 /**
218219 * Stringify HTML.
219220 *
220- * @param {Object } node
221+ * @param {MDASTHTMLNode } node - HTML node.
221222 * @return {string }
222223 */
223224 return function ( node ) {
@@ -230,7 +231,7 @@ function stringify(compile, settings) {
230231/**
231232 * Run factory.
232233 *
233- * @param {Object } settings
234+ * @param {Object } settings - Configuration.
234235 */
235236function run ( settings ) {
236237 var callback = settings . onrun ;
@@ -246,9 +247,10 @@ function run(settings) {
246247 *
247248 * Passed intto `visit`.
248249 *
249- * @param {Node } node
250- * @param {number } index
251- * @param {Node } parent
250+ * @param {MDASTNode } node - node to check.
251+ * @param {number } index - Position of `node` in
252+ * `parent`.
253+ * @param {MDASTNode } parent - Parent of `node`.
252254 */
253255 function gather ( node , index , parent ) {
254256 var result = test ( node ) ;
@@ -296,7 +298,7 @@ function run(settings) {
296298 /**
297299 * Modify AST.
298300 *
299- * @param {Object } node
301+ * @param {MDASTNode } node - Root node.
300302 */
301303 return function ( node ) {
302304 visit ( node , gather ) ;
@@ -307,8 +309,8 @@ function run(settings) {
307309 * Modify mdast to invoke callbacks when HTML commnts are
308310 * found.
309311 *
310- * @param {MDAST } mdast
311- * @param {Object? } options
312+ * @param {MDAST } mdast - Instance.
313+ * @param {Object? } [ options] - Configuration.
312314 * @return {Function? }
313315 */
314316function attacher ( mdast , options ) {
@@ -338,7 +340,7 @@ function attacher(mdast, options) {
338340 * Reason for this is that **mdast** only allows a single
339341 * function to be `use`d once.
340342 *
341- * @param {Object } options
343+ * @param {Object } options - Plugin configuration.
342344 * @return {Function }
343345 */
344346function wrapper ( options ) {
@@ -357,12 +359,12 @@ function wrapper(options) {
357359
358360module . exports = wrapper ;
359361
360- } , { "mdast -util-visit" :2 } ] , 2 :[ function ( require , module , exports ) {
362+ } , { "unist -util-visit" :2 } ] , 2 :[ function ( require , module , exports ) {
361363/**
362364 * @author Titus Wormer
363365 * @copyright 2015 Titus Wormer. All rights reserved.
364- * @module mdast- util- visit
365- * @fileoverview Utility to recursively walk over mdast nodes.
366+ * @module unist: util: visit
367+ * @fileoverview Utility to recursively walk over unist nodes.
366368 */
367369
368370'use strict' ;
0 commit comments