Skip to content

Commit

Permalink
export insertFolds funtion for use in manual mode
Browse files Browse the repository at this point in the history
Required for nlundquist#1
  • Loading branch information
fnep committed Jul 20, 2021
1 parent a15e129 commit 42dee59
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion prism-js-fold.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,10 @@ if (Prism) {
Prism.hooks.add('before-all-elements-highlight', ({ elements }) => elements.forEach(insertFolds))
} else {
console.warn('prism-js-fold: Prism was not loaded so we could not add the Prism hook needed for code folding insertion.')
}
}

if (typeof module !== 'undefined' && module.exports) {
module.exports = {
insertFolds: insertFolds
}
}

0 comments on commit 42dee59

Please sign in to comment.