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

Problem indexing empty <li> #325

Closed
miguelisidoro opened this issue Dec 5, 2023 · 3 comments
Closed

Problem indexing empty <li> #325

miguelisidoro opened this issue Dec 5, 2023 · 3 comments
Labels
awaiting feedback This issue is awaiting feedback from the reporter bug Something isn't working request A request for a new feature or enhancement stale This issue/PR has been inactive for too long

Comments

@miguelisidoro
Copy link

miguelisidoro commented Dec 5, 2023

Report issue

I have an error with the following stack trace:

System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Aggregate[TSource](IEnumerable1 source, Func3 func)
at Html2Markdown.Replacement.HtmlParser.ReplaceList(String html)
at Html2Markdown.Replacement.HtmlParser.ReplaceLists(String html)
at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable1 source, TAccumulate seed, Func3 func)
at Html2Markdown.Converter.Convert(String html)

Steps to reproduce the problem

Use the following html:

"<h1>Adopt OKRs as a strategy execution framework</h1>
<h2>Channel: OPSP 2023</h2>
<h2>Tags: 2023Q3ROCKS</h2>
<p><strong>Ações</strong></p>\n<ul>\n<li>✅ <a
            href=\"https://www.site.pt">Apresentação</a>
        OKRs 101 </li>\n<li>✅ Titçe\n<ul>\n<li><img
                    src=\"https://www.site.pt"></li>\n
        </ul>\n</li>\n<li>✅ Definição de \"coaches\"\n<ul>\n<li>John Doe</li>\n</ul>\n
    </li>\n<li>✅ Subtitle\n<ul>\n<li>Q4 2023</li>\n</ul>\n</li>\n<li>🕒 Tool
\n<ul>\n<li>In evaluation</li>\n</ul>\n</li>\n</ul>"

Thanks

@baynezy baynezy added bug Something isn't working request A request for a new feature or enhancement labels Dec 5, 2023
baynezy added a commit that referenced this issue Dec 7, 2023
@github-actions github-actions bot added the in progress In flight work label Dec 7, 2023
baynezy added a commit that referenced this issue Dec 7, 2023
@baynezy
Copy link
Owner

baynezy commented Dec 7, 2023

@miguelisidoro - I am having trouble recreating your issues.

See 3d5259c for details. This unit test passes and does not create your LINQ error. Can you send me a reproducible case to help me debug it?

@baynezy baynezy added blocked This issue is blocked by another issue awaiting feedback This issue is awaiting feedback from the reporter labels Dec 7, 2023
baynezy added a commit that referenced this issue Dec 13, 2023
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This issue/PR has been inactive for too long label Jan 13, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2024
@baynezy baynezy removed in progress In flight work blocked This issue is blocked by another issue labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback This issue is awaiting feedback from the reporter bug Something isn't working request A request for a new feature or enhancement stale This issue/PR has been inactive for too long
Projects
None yet
Development

No branches or pull requests

2 participants