valeriangalliat / markdown-it-anchor

A markdown-it plugin that adds an `id` attribute to headings and optionally permalinks.
The Unlicense
291 stars 72 forks source link

fix: avoid `ReferenceError` in browser #102

Closed OpportunityLiu closed 3 years ago

OpportunityLiu commented 3 years ago

process && process.emitWarning will cause ReferenceError: process is not defined in browser

valeriangalliat commented 3 years ago

Good catch, thank you!

valeriangalliat commented 3 years ago

Live on 8.1.2