UNPKG

leafdoc

Version:

A lightweight NaturalDocs-like LeafletJS-style documentation generator

13 lines (9 loc) 288 B
'use strict'; // Trivial file/Str parser. // Assumes that the whole string is leafdoc docstrings. // This is the old 'isSource=false' behaviour. function trivialParser(str) { // Return an array with just one element, the whole string. return [str]; } module.exports = trivialParser;