add function

add(line, data)

Tag.add for @codeend.

Parameters

  1. line {String}:

    Text from @codeend until the end of line.

    For example:

    @codeend
    
  2. curData {Object}:

    Custom data object hydrated by bit-docs-js/tags/codestart.

    For example:

    {
        type: 'javascript',
        lines: ['/**', ' * @demo demos/example.html 300', ' *|'],
        last: {
            code: '@demo PATH [HEIGHT]',
            description: '\n',
            params: []
        },
        _last: undefined
    }
    

Returns

{ProcessTagsCommand}:

['poppop', '...'].

For example:

[
  'poppop',
  '```javascript\n/**\n * @demo demos/example.html 300\n */\n```'
]