Tag.addMore typedef

Called for every line after a Tag if Tag.add returns an object.

function(line, curData, scope, docMap)

Parameters

  1. line {String}:

    String of characters until newline.

  2. curData {Object}:

    Custom object.

  3. scope {DocObject}:

    DocObject representing current scope.

  4. docMap {DocMap}:

    DocMap being added to.

Returns

{undefined}:

Use

For example, bit-docs-js/tags/codestart.addMore pushes to the custom data object returned from bit-docs-js/tags/codestart.add:

addMore: function( line, data ) {
  data.lines.push(line);
},