rehype-highlight icon indicating copy to clipboard operation
rehype-highlight copied to clipboard

Use `file.fail` instead of throwing an error

Open wooorm opened this issue 3 years ago • 0 comments

Initial checklist

Problem

https://github.com/rehypejs/rehype-highlight/blob/dd58e3935eef931e02080443883ad0832ed6c7fa/lib/index.js#L111

Solution

This error relates to a node, at a certain place. It should be thrown on the vfile.

Alternatives

n/a

wooorm avatar Dec 23 '21 08:12 wooorm