Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use numbers instead of bullets for ordered lists #120

Open
grimmdude opened this issue Feb 12, 2024 · 0 comments
Open

Use numbers instead of bullets for ordered lists #120

grimmdude opened this issue Feb 12, 2024 · 0 comments

Comments

@grimmdude
Copy link

grimmdude commented Feb 12, 2024

Currently ordered lists are converted into unordered lists in text; using an asterisk instead of numbers. Would be great to use numbers for these cases.

Example

(new \Html2Text\Html2Text('<ol><li>Item 1</li><li>Item 2</li></ol>'))->getText()

Result

* Item 1
* Item 2

Expected

1. Item
2. Item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant