Vscode-markdown: markdown.extension.printToHtml automatically

Created on 7 Oct 2018  ·  7Comments  ·  Source: yzhang-gh/vscode-markdown

I would like to know if it is possible to execute markdown.extension.printToHtml everytime I save the file.
Is it also possible to modify the template used to convert md to html ?

Thank you,
Lucas

Help wanted Enhancement

All 7 comments

I found an extension Save and Run Ext. You can have a try. The command name is markdown.extension.printToHtml

And for "template", actually, I don't understand your exact meaning... Do your mean the styles applied to the HTML file?

These styles are applied (in sequence)

  1. VSCode preview stylesheets
  2. Custom stylesheets from setting markdown.styles
  3. Preview settings (fontSize, fontFamily etc.)

Thank you for your answer!
Why not proposing this functionality directly without requiring to install a plugin?

Personelly, I think most people only export Markdown as HTML for sharing. So this funtionality is not that frequently used.

But, I don't understand: a software is not meant to have only functionalities used 100% of the time by its users... In Word or Excel, there are a lot of functionalities that are rarely used by a lot of users, but this is because of these functionalities that these tools are so great!

Another different philosophy is to keep it simple 😉. Eclipse and PyCharm/IntelliJ are all good IDEs, with many useful features. But I prefer lightweight VSCode even that its Python extension is still not good enough.

A more realistic reason is we cannot make efforts to implement every features. I believe this is common for all open-source projects (and that's why community contribution is important for open-source projects). Every month, VSCode team picks some of the top-voted features (and also, according to the programmers' preferences) and make their monthly iteration plan.

For me, a feature who is requested by about 3 people (in GitHub) is a "popular" one. (#20 is a typical example 😄)

I don't see why adding the automatic md to html would make it more complicated to use.

However, I understand your second point!

Thank you for your time and your extension!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nosalan picture nosalan  ·  3Comments

smallprogram picture smallprogram  ·  3Comments

maoturing picture maoturing  ·  4Comments

PierreMarchand20 picture PierreMarchand20  ·  3Comments

lotapp picture lotapp  ·  3Comments