add function
add(line, data)
Parameters
- line
{String}
:Text from @codeend until the end of line.
For example:
@codeend
- 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```'
]