Skip to content

Commit

Permalink
Update lib/convert.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Brackett <[email protected]>
  • Loading branch information
iloveitaly and Mr0grog authored Oct 29, 2023
1 parent a174189 commit 0b97f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function doubleBlankLinesBeforeHeadings (previous, next, _parent, _state) {
return undefined;
}

const isNode = typeof process !== 'undefined' && process.versions && process.versions.node;
const isNode = typeof process !== 'undefined' && process.versions?.node;
const rehypeParse = isNode ? rehypeNode : rehypeDom;
const rehypeParseOptions = isNode ? {fragment: true, verbose: true, emitParseErrors: true} : {}

Expand Down

0 comments on commit 0b97f0c

Please sign in to comment.