Code Monkey home page Code Monkey logo

Comments (6)

baynezy avatar baynezy commented on July 18, 2024

@RareNCool that is not valid HTML
2017-01-10_0913

What would expect to happen?

from html2markdown.

ShawnTheBeachy avatar ShawnTheBeachy commented on July 18, 2024

@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):

md

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.

baynezy avatar baynezy commented on July 18, 2024

@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.

baynezy avatar baynezy commented on July 18, 2024

@TastesLikeTurkey - is this still a valid issue?

from html2markdown.

ShawnTheBeachy avatar ShawnTheBeachy commented on July 18, 2024

@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.

baynezy avatar baynezy commented on July 18, 2024

Blocked by #45

from html2markdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.