Skip to content

this context of mdast-util-from-markdown extension enter/exit functions #716

Answered by wooorm
vadistic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there! Jakub!

Q1: Could you consider adding those interface to public types? Current typing of (token: Token) => void is not quite enough.

Working on it. I’m in the process of updating the whole collective (unifiedjs/unified#121), and yesterday pushed types to micromark. There are a couple of other issues going into that release.

I first built CommonMark support only. Then came all the extensions. Those all affected the core too. Now I’m going through everything again, making it stable, and documenting it.

Q2: Is my interface correct? What's the resume() does?

Not completely, for one the return types are different than the code: https://github.com/syntax-tree/mdast-util-from-markdo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vadistic
Comment options

@vadistic
Comment options

@wooorm
Comment options

Answer selected by vadistic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants