Comments (6)
@RareNCool that is not valid HTML
What would expect to happen?
from html2markdown.
@baynezy Sorry, I was typing from memory.
Here's the exact HTML:
<br></div><div>Whispering, <i>I love you, before long I die, <br></i></div><div>I have travell’d a long way merely to look on you to touch you,
from which I get (with HTML2Markdown):
The desired behavior would be for it to know that </i>
is closing italics and act accordingly, but I understand if that's too complicated to implement.
from html2markdown.
@RareNCool - what is wrong with that? Or rather what would you expect it to do? For accuracy maybe create a Gist of what you expect and then link to that here.
from html2markdown.
@TastesLikeTurkey - is this still a valid issue?
from html2markdown.
@baynezy Apologies, I forgot to ever respond. I think it still is, trying it at your demo page. For example, this:
<i>Hello there
I am Lord Foulspleen</i>
which is perfectly valid HTML, is converted to:
*Hello there
I am Lord Foulspleen*
which most Markdown renderers don't render correctly.
It would be nice if tags in the middle of other tags were handled correctly (adding a *
at the end of the first line and the beginning of the second). But I don't know how feasible this is. If it's not something you want to bother with I can always try to come up with my own solution, too.
Hopefully this example is clear:
<i>Hello,<br />I am Lord Foulspleen</i>
would become:
*Hello,*\n*I am Lord Foulspleen*
from html2markdown.
Blocked by #45
from html2markdown.
Related Issues (20)
- List indentation doesn't work
- Issue with code tags HOT 1
- Exception with HTML that comes from the clipboard
- Migrate testing to use Verify framework
- Markdown generation breaks with updated HtmlAgilityPack HOT 2
- Upgrade to dotnet 6
- Upgrade HtmlAgilityPack to latest version
- Implement dependabot
- Utilise dotnet 6 changes
- Tidy up codebase
- Update NuGet deploymeny API Key
- Resolve Code Quality Issues
- <ol>Support of <li value = ""
- ul-li elements not handled correctly
- Configure Linux Testing on AppVeyor
- Add Matrix Support for AppVeyor
- Add README to NuGet.org
- Add GitStream
- <ul> <ol> requires li HOT 2
- Replace Moq with NSubstitute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html2markdown.