Coder Social home page Coder Social logo

Comments (2)

Knagis avatar Knagis commented on August 16, 2024

One \r\n should be there (the parser implies a newline in the source even if there is none), however the second one might be a bug. I will see if the second one can be removed.

from commonmark.net.

ruffin-- avatar ruffin-- commented on August 16, 2024

Yep, just checked try.commonmark.org, and the JavaScript reference implementation does add a new line. When textarea.val() is "and", the result is "<p>and</p>\n". Okay, actually it's '<p data-sourcepos="1:1-1:3">and</p>\n', but that's beside the point.

Pain point -- I'm inserting a preprocessor for Multimarkdown tables and MarkUpDown multiline tables, and if I convert each cell's contents "on their own" so that they can contain Markdown, I get that extra newline, which makes the resulting table code parser unfriendly if there's whitespace and an empty line, but a Trim() with each convert is easy enough.

Thanks! Glad there was at least one valid improvement from the issue report!

from commonmark.net.

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.