Skip to content

Commit

Permalink
Merge pull request #19 from MarioSimou/main
Browse files Browse the repository at this point in the history
feat: DEBUG environment variable
  • Loading branch information
PatrickHeneise authored Sep 27, 2022
2 parents 046d847 + 8a5747f commit ef3236c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ export default async function parseMD(body) {
const obj = structuredResponse[currentHeading]
obj.content.push(token.children[0].value)
} else {
console.log('unhandled token type')
console.log(token)
if(process.env.DEBUG){
console.log('unhandled token type')
console.log(token)
}
}
}

Expand Down

0 comments on commit ef3236c

Please sign in to comment.