Skip to content

List Handling when values are indicated at the tag #98

@fcasalen

Description

@fcasalen

First of all. Thanks for inscripts. It helped me a lot to scrap data from some pages and use it on LLMs. I was doing my on inscripts and well...not even close....

This issue is related to list handling. I ran into something like:

<ol class="enumerate">
<li value="2">test</li>
<ol>

The html exhibits "2. test", but inscripts produces "1. test" because it enumerates the item accordingly to the attribute li_counter, that is updated as it finds li tags.

In cases where there is a value in the tag, shouldn't it use the value instead?

I've added a if block in the list_tag.py so my code do this, but I'm thinking that this may be used by others...

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions