-
Notifications
You must be signed in to change notification settings - Fork 45
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
Feat: add raw import (Mode.RAW) #400
Conversation
Thanks for your contribution! For raw mode, I'd prefer to rely on Vite's |
Confirmed |
I understand your point, but Is there a solution for this with |
icic that makes sense. let me consider API/naming. |
A workaround is to import a const YAMLFrontMatterRegex = /---(.|\n)*---/
const markdown = rawViteImport.replace(YAMLFrontMatterRegex, '') I'd prefer a single import with |
@stefanvanherwijnen what do you feel if the plugin export raw markdown string via |
Sounds good to me 👍 |
This shout be mention in the docs. |
This adds a
raw
export to .md files which returns the raw Markdown content.#342