cleanup comments

pull/11/head
David Ordás 2022-09-17 11:51:24 +02:00
parent dc53b8c803
commit ec488e910c
No known key found for this signature in database
GPG Key ID: 6FD751229911593E
1 changed files with 2 additions and 1 deletions

View File

@ -31,9 +31,10 @@ const excludes = [
* @returns {string} an string with the name of the section related with the input heading
*/
function getSectionNameFromHeadingContent(children) {
// visit nodes in depth
const walk = (children, depth) =>
children.reduce((text, node, index) => {
if (!node || !node.type) return text;
if (!node || !node.type) return text; // not AST, maybe plain text
switch (node.type) {
//
// meaningfull nodes