mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 250 forks source link

Fix single file support and move single file detection in resolve-args #57

Closed josimard closed 7 years ago

josimard commented 7 years ago

Hi Mikito, I was trying to input a single file and it wasn't working. (On Windows) This commit would ensure the detection happens early and that the single-file gets in the output.

I also created a version that, with a single file only, it embeds the css inside the html with the "--flat" argument: https://github.com/josimard/markdown-styles/commit/d5951b37936e46b4d125234db7decfca8fcbf2d0

It it not working with other layouts assets such as fonts, but it might give you an idea. I am not that good with pipe/streams so I had to move some code around to understand better render.js.

Cheers

mixu commented 7 years ago

👍 thanks!