The Wayback Machine - https://web.archive.org/web/20211228085756/https://github.com/markedjs/marked/issues/2232
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export use so that it's easier to import #2232

Open
dtzxporter opened this issue Oct 7, 2021 · 1 comment
Open

Export use so that it's easier to import #2232

dtzxporter opened this issue Oct 7, 2021 · 1 comment

Comments

@dtzxporter
Copy link

@dtzxporter dtzxporter commented Oct 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment