ff6347/to-markdown-cli

Not converting anything?

cayhorstmann opened this issue · 5 comments

I just installed version 0.4.1 on Ubuntu Linux 18.04. I must be doing something wrong, because not even the simplest files are converted. For example, if test.html is

<html>
  <head>
    <title>A test</title> 
  </head> 
<body>
   <h1>A test</h1>
    <p>A test</p>
</body>
</html>

running

html2md -i test.html

does nothing at all. Any idea what I might be doing wrong?

Hi @cayhorstmann

Sorry I can't reproduce the error. With v0.3.5 I can do this

$ cat test.html
> <html>
>   <head>
>     <title>A test</title>
>   </head>
> <body>
>    <h1>A test</h1>
>     <p>A test</p>
> </body>
> </html>
$ html2md -i test.html
> A test
> 
> A test
> ======
> 
> A test

Sorry. You are right the input file flag seems to be broken. Try

cat test.html | html2md

Published v0.4.2 with a fix for that.