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.
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.
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