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

Toggle/Disable Real-time/Live Markdown Preview Updating #991

Closed
FruitSausage opened this issue Jul 22, 2021 · 6 comments
Closed

Toggle/Disable Real-time/Live Markdown Preview Updating #991

FruitSausage opened this issue Jul 22, 2021 · 6 comments
Labels
Area: Preview The Markdown preview is owned by VS Code. We have nearly no control. Res: External Outside of our control/codebase. Upstream Pertaining to an upstream component, or blocked by an upstream issue.

Comments

@FruitSausage
Copy link

Is there a feature to toggle real-time preview updating, or better to only update on save like LaTeX? For long files full of KaTeX math, real-time preview updating can significantly slow down the editor. I have tried regularly closing/reopening the preview as a workaround, but this steals focus from the editor.

@Lemmingh Lemmingh added the Upstream Pertaining to an upstream component, or blocked by an upstream issue. label Jul 23, 2021
@Lemmingh
Copy link
Collaborator

No. I'm sorry.

The preview is from VS Code. They only listen to changes:
https://github.com/microsoft/vscode/blob/54a2e15f6bf459a07e7da4178074ed143e2e251c/extensions/markdown-language-features/src/features/preview.ts#L154-L162

But this sounds reasonable. What about opening an issue at their repo?
https://github.com/microsoft/vscode/labels/markdown

@FruitSausage
Copy link
Author

Thanks for linking the exact code.

I've opened an issue here:
microsoft/vscode#129252

@yzhang-gh
Copy link
Owner

Thanks

@Lemmingh Lemmingh added Area: Preview The Markdown preview is owned by VS Code. We have nearly no control. Res: External Outside of our control/codebase. labels Aug 24, 2021
@FruitSausage
Copy link
Author

After updating VSCode earlier to 1.60, I also encountered this issue:

#1010

which made me realize having both the built-in math renderer and Markdown All in One's running at the same time was the cause of a lot of the preview update slowness I've been having. Disabling the built-in preview extension as mentioned here:

#1008

fixed the syntax highlighting and improved the preview speed. I see the issues with having both renderers running at the same time is mentioned here:

https://markdown-all-in-one.github.io/docs/guide/compatibility.html#rendering-for-math-in-the-markdown-preview

but @Lemmingh @yzhang-gh would it be possible to mention the conflict on the extension marketplace page?

@yzhang-gh
Copy link
Owner

We were planning a major update (v3.5.0) but I won't have enough time until the end of this year.

Probably we can make a patch (v3.4.1) including only fixes for several issues (e.g. #1010).

@Lemmingh
Copy link
Collaborator

I'll mention the docs in the README.

Let's move the discussion about release to #966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Preview The Markdown preview is owned by VS Code. We have nearly no control. Res: External Outside of our control/codebase. Upstream Pertaining to an upstream component, or blocked by an upstream issue.
Projects
None yet
Development

No branches or pull requests

3 participants