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

remark@next (13) #154

Open
wooorm opened this issue Oct 3, 2020 · 1 comment
Open

remark@next (13) #154

wooorm opened this issue Oct 3, 2020 · 1 comment

Comments

@wooorm
Copy link

wooorm commented Oct 3, 2020

Hi!

remark is switching to a new parser (and compiler) internally (micromark, remarkjs/remark#536), which will break this plugin.
I will create a generic directives plugin though, time permitting, in this month, which would be a good inspiration for “generic extensions”.
Keep an eye out that plugin, which will also have micromark and mdast extensions too, and feel free to ask me questions!

@wooorm
Copy link
Author

wooorm commented Oct 23, 2020

I have created a micromark extension for my interpretation of the generic directive syntax: https://github.com/micromark/micromark-extension-directive
And a corresponding utility for mdast: https://github.com/syntax-tree/mdast-util-directive
And wrapped ’em all up in: https://github.com/remarkjs/remark-directive

I hope those serve as inspiration: note that you don’t have to split them up in several repos, but that’s how I like to work.

Finally, something like remark-generic-extensions can be done with remark-directive too, where remark-directive handles the syntax and tree, and remark-generic-extensions changes the tree to create HTML?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant