Not converting anything?
cayhorstmann opened this issue · 5 comments
cayhorstmann commented
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?
ff6347 commented
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
ff6347 commented
Sorry. You are right the input file flag seems to be broken. Try
cat test.html | html2md
ff6347 commented
Published v0.4.2 with a fix for that.
ff6347 commented
@all-contributors please add @cayhorstmann for bug
allcontributors commented
I've put up a pull request to add @cayhorstmann!