egoist / vmark

Convert markdown to Vue component.
MIT License
162 stars 11 forks source link

JSX syntax #11

Open Aaron-Pool opened 5 years ago

Aaron-Pool commented 5 years ago

I've been looking for a vue alternative to https://github.com/mdx-js/mdx

We use mostly vue with jsx in our component library, so I'd like it if our docs could be written in a consistent format with that. Is that possible here?

callumflack commented 5 years ago

@Aaron-Pool are you satisfied with how mdx now works with Vue?

Saw your comments in this thread: https://github.com/mdx-js/mdx/pull/455

Aaron-Pool commented 5 years ago

@callumflack my pursuit of integrating MDX into our vue-jsx based component library ended up getting vastly simplified with the announcement of Storybook's upcoming release, which will integrate mdx into their story format.

See here: https://medium.com/storybookjs/storybook-docs-sneak-peak-5be78445094a

My team was already using storybook, I was considering switching to Docz if mdx added vue support. But, luckily, at the same time that MDX was adding vue support, Storybook has been adding MDX support. So no switch was necessary, and I'm still going to be able to use MDX, come Storybook 5.2 👍

callumflack commented 5 years ago

Thanks @Aaron-Pool I wish I had a use case for Storybook b/c it'd be a lot of fun.

I'm interested in using MDX in Vue to replace my current blogging set-up that uses Nuxtent. (Aside: Nuxtent kinda seems to be a precursor to MDX but the Vue folks haven't really latched on to the possibilities like React folk have?)

I'll try out vmark, although I'm keen to jump on the MDX bandwagon but with Vue.

Looks like the MDX Vue example fails on a vanilla install ATM. Prob a small thing, but I just have no idea regards fixing the issue.

egoist commented 5 years ago

As MDX is starting to support Vue JSX, I'm not going to reinvent the wheels here 😄 This project will only focus on Vue template support.

callumflack commented 5 years ago

I think that's smart. What's your opinion of the creative potential of MDX in Vue, @egoist ?

egoist commented 5 years ago

@callumflack I'm not really sure about that, vmark can do all the things MDX can do, the only difference is that it's not JSX.

callumflack commented 5 years ago

That's my naivety speaking then, @egoist.

The only boon to waiting for MDX in Vue, then, is to jump on board their bandwagon.

Food for thought, cheers.