-
Notifications
You must be signed in to change notification settings - Fork 325
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
Print Document current document to HTML #1310
Comments
Thank you. The Lines 237 to 238 in 99f85cf
And the ~600 lines of styles in your file are from other extensions that contribute .css files to the VS Code's Markdown preview. Their .css files are included in the exported HTML in order to retain a similar looking as in VS Code (although they may not take effect). May I know where you want to paste the HTML? And would you think it is useful to only export only pure HTML (without any CSS)? I have seen similar feature requests before. Note that some features may not work without CSS (e.g. math). |
Yes I paste to a few different places, Basecamp which is a project management software that uses their own editor called Trix. And Zoho CRM which doesn't support Markdown either but does support HTML. So generally I write up a report in Markdown in VSCode, Export to HTML, Zoho - Copy/paste that html into Articles. Or in Basecamp - Open the HTML in chrome and copy/paste the text not the HTML. As far as just plain HTML not really sure what that would look like. I mean I want headers to be larger and unordered lists to be the dots. I believe that is part of the CSS? As far as colors, and fonts not really concerned as they are mostly technical documents. |
I see.
Then HTML by itself is enough. Will try to do it during the weekend as it is simple to add. |
That's fantastic thank you :) |
You can check out the dev build https://github.com/yzhang-gh/vscode-markdown/suites/14331658569/artifacts/806613865 Instruction: https://github.com/yzhang-gh/vscode-markdown#latest-development-build |
I downloaded it and installed with the Extension from VSIX and reloaded VSCode. The dev build shows it as |
The version number doesn't matter as long as it is not lower than the stable release.
Sorry I forgot to mention that there is a new option |
Got it. That worked perfect. Thank you! |
What's the problem
Getting all VSCode styling in HTML when setting is turned off.
What's the expected result
For the first style tags to be empty. Basically line 6 - 695 is all styling which does not seem to apply regardless because when I open the HTML file it looks plain.
How to reproduce
Here is a small sample :
Other information
The goal would be to not have 690 lines of HTML that is not needed so to copy/paste the HTML into other programs is not so big. Here is the settings I changed:
"markdown.extension.print.includeVscodeStylesheets": false
On a side note this is probably the best addon i've used in VSCode. Now I can't document anything outside of Markdown.
The text was updated successfully, but these errors were encountered: