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

🔥 New feature: add support for mdx #106

Open
SleepWalker opened this issue Aug 12, 2021 · 3 comments
Open

🔥 New feature: add support for mdx #106

SleepWalker opened this issue Aug 12, 2021 · 3 comments

Comments

@SleepWalker
Copy link

Hello,

mdx is a markdown extension, that allows to use React inside md files. React components can be used to replace current approach with macros. As a result we will get much more flexible and customizable tool.

There is only one problem. Looks like mdx requires to add JavaScript in the mix, but I saw there are already go project that mixing in js parts: https://github.com/jxnblk/mdx-go. I'm not a go developer, so I don't know the best way to add mdx support inside go project.

If mdx support goes completely against current vision of mark development can I request another feature? It would be cool allow setting up "compiler" for files so that the mark will delegate md/mdx -> html conversion to some external command. In such way someone like me will be able to replace default md parsing with the custom one.

@SleepWalker SleepWalker changed the title 🔥 New feature: add support for mdx New feature: add support for mdx Aug 12, 2021
@SleepWalker SleepWalker changed the title New feature: add support for mdx 🔥 New feature: add support for mdx Aug 12, 2021
@sofixa
Copy link

sofixa commented Aug 12, 2021

I think having external compilers would be a pretty cool addition and be used for #49

@SleepWalker
Copy link
Author

I've successfully integrated mdx (react) with mark. There are still some little things to fix but it seems to work! I'm planning to publish my work as a separate package and gradually rewrite it to js

@sofixa
Copy link

sofixa commented Aug 21, 2021

@SleepWalker i think it'd be interesting if you share your mixed go/js version, to see how you've implemented it, which could be helpful for other js based integrations ( like mermaid.js).

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

2 participants