JohannesKaufmann / html-to-markdown

βš™οΈ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› `start` parameter of `<ol>` tag is ignored

God-damnit-all opened this issue Β· comments

Describe the bug

The start parameter in <ol> tags specifies what number in a sequence to start with. This is often used when there's something that needs to be inserted between the entries, like a code block:

HTML Input

<ol start=3><li>Echo the word "foo"</ol></li>
<pre><code>echo('foo')</code></pre>
<ol start=4><li>Now echo "bar"</ol></li>
<pre><code>echo('bar')</code></pre>

Generated Markdown

1. Echo the word "foo"

```
echo('foo')
```

1. Now echo "bar"

```
echo('bar')
```

Expected Markdown

3. Echo the word "foo"

```
echo('foo')
```

4. Now echo "bar"

```
echo('bar')
```

Hi @ImportTaste, added that feature with the version 1.5.0