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

Parcel 2: Markdown transformer #3357

Open
devongovett opened this issue Aug 12, 2019 · 10 comments · May be fixed by parcel-bundler/website#1102
Open

Parcel 2: Markdown transformer #3357

devongovett opened this issue Aug 12, 2019 · 10 comments · May be fixed by parcel-bundler/website#1102

Comments

@devongovett
Copy link
Member

Create the @parcel/transformer-markdown package in packages/transforms/markdown. This package is a Parcel 2 transform plugin for markdown. It should be based on the MarkdownAsset from Parcel 1.

The @parcel/transformer-markdown package is responsible for the following things:

  • Compiling markdown to HTML using marked
@JosephMart
Copy link

I am interested interested in working on this!

@devongovett
Copy link
Member Author

Awesome @JosephMart! Let us know if you have any questions.

@kirillrogovoy
Copy link
Contributor

Here's some code that does a bunch of stuff already with Markdown:
#2882

We could rewrite it as a transformer and there you go. @JosephMart wanna pair up on that?

@kalaschnik
Copy link

Is there any update on this feature? Or is there even a Plugin that does work for Parcel v2?

@TLATER
Copy link

TLATER commented Apr 10, 2021

https://github.com/jonathantneal/posthtml-md can be used for some limited support in html being bundled with parcel :)

@joshocalico
Copy link

It's also worth mentioning that there exists a MDX transformer for those of you using React.
I'm assuming the work required isn't too bad so I might try throwing something together in the next couple of days for those after plain old markdown.

@pspeter3
Copy link

It seems like a transformer here could actually be used for static site generation. Could the transformer also resolve a template function that wraps the resulting HTML?

@jaywcjlove
Copy link

Use parcel-transformer-markdown.

@devongovett

@TechQuery
Copy link

You can also use my plugin for MDX 3: https://github.com/EasyWebApp/Parcel-transformer-MDX

@iacore
Copy link

iacore commented Mar 25, 2024

There's also parcel-transform-remark, although it seems to have the wrong name.

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