Git Product home page Git Product logo

Comments (5)

xavi- avatar xavi- commented on July 19, 2024

This causes an IE bug. For whatever reason IE interprets <br></br> as <br/><br/>. Note the position of /.

from markdown-js.

Sannis avatar Sannis commented on July 19, 2024

I'm running markdown-js under Node and get

in plain HTML. It looks like two linebreaks in FF 3.6.10 and in Chrome 6.0.472.62 under openSUSE 11.3.

from markdown-js.

Sannis avatar Sannis commented on July 19, 2024

Sorry, I'd found cause.
XHTM doctype must be used with generated HTML.

from markdown-js.

xavi- avatar xavi- commented on July 19, 2024

It's still an issue in IE, regardless of doc type.

from markdown-js.

kragen avatar kragen commented on July 19, 2024

The reason for this is that the <br> tag is empty, so when the browser reaches the second <br> tag, it isn't inside a <br> element. So it infers a <br> element so it can close it. I'd be very surprised if this weren't enshrined in the evolving HTML5 parsing algorithm.

To me, it is not okay that markdown-js generates incorrect HTML for this case, even if it's correct XHTML, because I put its results into HTML documents, not XHTML documents. Can we reopen this issue?

from markdown-js.

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.