-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
VSCode - format slides.md - break the build #854
Comments
This happens if you're using either Not so cool suggestion: Adding a formatter to |
A cool suggestion would be to add a prettier parser :D |
I just add an the prettier config file in the root disabling it for .md |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think this should be reopened. It's probably my biggest pain point with slidev atm. |
I've so far gotten through this with
But, another way to do this would be great. |
@jakebailey this is very cool! I didn't know this option existed. Thanks! Now creating a workaround is quite simple: https://gist.github.com/maxandron/ce7ca54f2e808dadd209e34ebe751f92 |
That works for those who only run prettier separately; I format in my editor, so, I think an alternative way to write these blocks would be still great. Maybe: ---
title: the first one is okay
---
# Blah
---
<v-config>
layout: fact
</v-config>
# This is a fact!
Or something. Unfortunate that this repo uses the stale bot, though; this is the second filing of this 😢 |
@joe733 I switched over to MarkdownAllInOne but am not getting any formatting on save. |
@CodyBontecou |
my suggestion is using
|
I think it might be worth having a custom, prettier plugin/parser. As I don't have much knowledge about Prettier (nor really using it), I might not have enough incentive to work on it very soon. Would appreciate if someone is interested in giving it a try |
Meanwhile #1186 might be a good solution that works today |
Aha, that does appear like it would do the trick. I get this: (removed image, it's wrong) Uploaded to https://github.com/jakebailey/talk-ts-congress-2023/tree/new-frontmatter; this is page 12. (That being said, if this did work and were documented, I would personally be happy with this issue being closed.) |
I'm an idiot; I ran (So, IMO this can be closed; sorry I didn't notice that PR.) |
Created #1261 to track on Prettier |
Describe the bug
If I format the markdown file - the build break.
before
after formatting
To Reproduce
Steps to reproduce the behavior:
dev
slides.md
slides.md
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: