Coder Social home page Coder Social logo

Comments (7)

gettalong avatar gettalong commented on June 17, 2024

Actually, Github uses both, hard line breaks and the normal Markdown behaviour.
For example, in this comment line breaks are automatically converted to hard
line
breaks.

Whereas in other parts (e.g. conversion of README files) hard line breaks are not used.

Maybe an option to turn off hard line breaks in GFM would be useful?

from kramdown.

plexus avatar plexus commented on June 17, 2024

I based myself on the documentation at https://help.github.com/articles/github-flavored-markdown

But since it's apparently not consitently used everywhere I agree a switch would be useful.

from kramdown.

brandur avatar brandur commented on June 17, 2024

Good call guys. I've opened a basic pull materializing this idea at #83. Thanks.

from kramdown.

gettalong avatar gettalong commented on June 17, 2024

@brandur Thanks for the pull request. Now, what should the default value for this be? Hard line breaks as in the documentation link provided by @plexus or default Markdown behaviour?

from kramdown.

plexus avatar plexus commented on June 17, 2024

I would say take the documented behavior as default. That way if people are
already using GFM it doesn't change how their applications behave.
On 26 Oct 2013 09:08, "Thomas Leitner" [email protected] wrote:

@brandur https://github.com/brandur Thanks for the pull request. Now,
what should the default value for this be? Hard line breaks as in the
documentation link provided by @plexus https://github.com/plexus or
default Markdown behaviour?


Reply to this email directly or view it on GitHubhttps://github.com//issues/82#issuecomment-27141009
.

from kramdown.

brandur avatar brandur commented on June 17, 2024

@gettalong @plexus Thanks for taking a look guys. I was originally trying to make the interface look like Redcarpet's, where a flag has to be set for hard wrapping to come into effect. +1 on making it the documented default though, if only so that the behavior for existing users doesn't change under them. I've updated my pull to toggle the default.

Slightly unrelated, I added another set of tests, but was slightly surprised when they didn't fail because nothing written in Ruby ever works on the first try. Am I doing it right?

from kramdown.

gettalong avatar gettalong commented on June 17, 2024

Thanks @brandur for the pull request. I have merged your code now.

from kramdown.

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.