cwjohan / markdown-to-html

Command-line utility to convert Github Flavored Markdown to HTML.
MIT License
236 stars 86 forks source link

Empty files when trying to convert multiple .md files to html #14

Closed dennyabrain closed 7 years ago

cwjohan commented 7 years ago

Denny, I think it has never been tested this way. Perhaps there is something about the Markdown object that is not reusable. The test of that would be to move the "let md = new Markdown();" statement into your logic loop so that it is created every time the loop cycles. Seems a bit inefficient, but worth a try. Maybe the Markdown class needs some reset function to set up its internal pointers for reuse. It may already have one. I haven't looked at the code for a very long time now and don't recall.

On Sun, Mar 26, 2017 at 3:43 PM, Denny George notifications@github.com wrote:

Closed #14 https://github.com/cwjohan/markdown-to-html/issues/14.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cwjohan/markdown-to-html/issues/14#event-1015851098, or mute the thread https://github.com/notifications/unsubscribe-auth/AH5q3PB0Btwhj4yY56EYsSAg8D4wJI5Kks5rpuotgaJpZM4Mpnjh .

dennyabrain commented 7 years ago

hey,

thats exactly what solved the problem for me :) i tried to delete the issue because I felt this wasn't really a problem with the library itself. I can add the text back if you want or feel free to delete the issue.

cwjohan commented 7 years ago

OK. Great. Thanks for letting me know.

On Mon, Mar 27, 2017 at 8:35 AM, Denny George notifications@github.com wrote:

hey,

thats exactly what solved the problem for me :) i tried to delete the issue because I felt this wasn't really a problem with the library itself. I can add the text back if you want or feel free to delete the issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cwjohan/markdown-to-html/issues/14#issuecomment-289491666, or mute the thread https://github.com/notifications/unsubscribe-auth/AH5q3BoUyC2W4YKH-urn9ua9XXTsmzJGks5rp9dQgaJpZM4Mpnjh .