Giter Site home page Giter Site logo

Comments (6)

justinwalsh avatar justinwalsh commented on September 24, 2024

Just for curiosity, if you were to double line break between them does it fix the issue? We have had some other issues with how our markdown parser handles single vs double line breaks.

from daux.io.

geebru avatar geebru commented on September 24, 2024

I tried doubling the line break and tripling it with no luck. The only thing I've had success with is putting a paragraph or line break between. Seems to be an issue with reading a line break between 2 lists - seems to just read the next list item and assumes it's in the same list.

from daux.io.

justinwalsh avatar justinwalsh commented on September 24, 2024

We are using an existing PHP library for parsing Markdown and it supports GFM, so this is most likely a bug in the parser. I am still looking into that. As far as how we expect it to work, this is right from GitHub's guide on using their version of MD:

The biggest difference that GFM introduces is in the handling of linebreaks. With SM you can hard wrap paragraphs of text and they will be combined into a single paragraph. We find this to be the cause of a huge number of unintentional formatting errors. GFM treats newlines in paragraph-like content as real line breaks, which is probably what you intended.

I'm not sure if there is another decent php lib for parsing MD out there, I found the one we are using now a while ago.

from daux.io.

geebru avatar geebru commented on September 24, 2024

A co-worker did find that the library you're currently using is out of date, in that there have been newer versions since this project was 'released' (the latest version is from April 2013; the currently used library is from October 2009).

Perhaps the new version fixes some of these lingering parser issues?

from daux.io.

TheSisb avatar TheSisb commented on September 24, 2024

Probably fix here: #160

from daux.io.

Gautham avatar Gautham commented on September 24, 2024

Resolved with Parsedown so closed :)

from daux.io.

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.