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

Formatting is broken on VS Code window reload #9

Open
JRiggles opened this issue Jun 28, 2022 · 1 comment
Open

Formatting is broken on VS Code window reload #9

JRiggles opened this issue Jun 28, 2022 · 1 comment

Comments

@JRiggles
Copy link

Running the VS Code command Developer: Reload Window causes *.hdnb notebooks to lose their existing formatting and to treat every line in the *.hdnb file as a separate Markdown cell. Opening the *.hdnb in Notepad shows that the file contents are unmodified, so I suspect this is an issue with how the file is parsed within VS Code.

Environment:
VS Code 1.68
Windows 10 Pro

@JRiggles
Copy link
Author

Additional info: This also happens when closing and re-opening VS Code. And I've figured out that its related to having code strings (strings surrounded by backticks) in Markdown cells! Opening the *.hdnb file in Notepad and removing inline backticks fixes the issue. Also, I was wrong about the file being unmodified: code blocks need to have their language specifiers added again since those seem to get removed, which is best accomplished in Notepad (or similar)

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

1 participant