marked icon indicating copy to clipboard operation
marked copied to clipboard

Export `use` so that it's easier to import

Open dtzxporter opened this issue 4 years ago • 1 comments

Marked version: 3.x.x

Describe the bug A clear and concise description of what the bug is.

Right now, import {use} from "markedjs" does not work, this worked in 2.x.x.

To Reproduce Steps to reproduce the behavior:

Install & import it. The DefinitelyTyped definitions also mark this incorrectly as being supported still.

A workaround is importing one of the structures that use is defined on like parse and calling parse.use(). This seems convoluted.

Expected behavior A clear and concise description of what you expected to happen.

use should be exported so we can import it directly.

dtzxporter avatar Oct 07 '21 16:10 dtzxporter

This would be fixed by https://github.com/markedjs/marked/pull/2227/files#diff-a1f849ecb1b5f277935b6443d357e81407d4f53e94dce3668115a64a33b8ef91R10 if we merge that PR

benmccann avatar Oct 07 '21 19:10 benmccann

Looks like that's merged, so this can be closed?

simonhaenisch avatar Nov 06 '22 19:11 simonhaenisch

Yes, thanks!

UziTech avatar Nov 06 '22 20:11 UziTech