-
Notifications
You must be signed in to change notification settings - Fork 83
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
Convert errors with 'Multiple node elments can't be created' #81
Comments
@tomaustin700 - I have added a test to show this is not actually a bug in this library. f417907 You can see the test results to prove that. The error in your attached project occurs in HtmlAgilityPack. I believe this is because you have incorrectly used the latest version whereas Html2Markdown depends on 1.5.0. NuGet should have installed that version when you installed Html2Markdown. This project will never upgrade HtmlAgilityPack because of zzzprojects/html-agility-pack#74 instead we will upgrade to AngleSharp in the next major version when #68 is completed. |
@baynezy Changing HtmlAgilityPack to 1.5.0 does seem to resolve this. Thanks. |
Hello, I'm getting this error on anything I try to convert though I have tried both HtmlAgilityPack 1.5.0 and 1.5.5... I'm clearly missing a beat, help please? |
@mitchavines do you have reproduceable case you can link to? |
Apologies, should have done so in the first place.
I'll reproduce (or sort myself out) in a sample project and check back...
Thanks!
…On Fri, Feb 22, 2019 at 11:06 AM Simon Baynes ***@***.***> wrote:
@mitchavines <https://github.com/mitchavines> do you have reproduceable
case you can link to?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AqaF7lgnrM_m6weL2mCBbiL2UGNDB1Ndks5vQBWPgaJpZM4StfU5>
.
|
You are absolutely right. I believe I upgraded the Html Agility Pack and this ended up breaking HTML2Markdown. When I removed both packages, and reinstalled HTML2Markdown, it came by default with Html Agility Pack 1.5.0 |
I am also getting same error. |
NuGet has all previous versions https://www.nuget.org/packages/HtmlAgilityPack/1.5.0 |
Report issue
Hi,
When running Convert on a string I am getting a unhandled exception stating 'Multiple node elments can't be created'. I have attached a sample solution demonstrating this issue.
Expected behavior
Convert does not crash.
Actual Behaviour
Throws unhandled System.Exception: 'Multiple node elments can't be created'
Steps to reproduce the problem
To duplicate just run the solution and it will crash when converting.
Html2MarkdownBugTest.zip
The text was updated successfully, but these errors were encountered: