New Feature: Save HTML to file without copy & paste #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When dealing with files with a lot of Latex copying the content and then pasting it into a new HTML file is can cause slow down while VS Code deals with the large file at first.
It also isn't an optimal workflow for dealing with multiple files or repeated editing because it requires a manual step each time you want to update it.
To address this I've added a new command that allows you to save the HTML directly to a file.
By default it saves in the same directory as
.html
instead of.md
, but this is fully configurable.There's also an option to enable auto save so that whenever you save changes to a markdown file the HTML file is created/updated.
A nice example of how this could be useful is setting the save path to
/docs/${file.name}.html
and enabling autosave.For someone hosting their Markdown + Math documents in a GitHub repository enabling Pages would allow the automatic creation of files that can be viewed by anyone, anywhere with these settings.
I haven't updated the README beyond the new default values or updated the version so a maintainer can do it properly.