WordPress.org

Support

Support » Plugins and Hacks » WP-Markdown » Linebreaks after paragraphs dont work

Linebreaks after paragraphs dont work

  • Maybe I’m doing something wrong but I can’t get linebreaks after paragraphs. When I leave a blank line (linebreak) between paragraphs they are still like one. Even when I put two or more blank lines between paragraphs the result is the same, also the WP editor defaults back so there’s only one linebreak between paragraphs.

    I’m still kind of new to Markdown but when I read documentation it said “two or more blank line will create linebreak” if I’m not mistaken.

    Here’s an example. I put this in WP editor (ignore “<>” of course):

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse urna lacus, commodo eget enim eget, tristique fermentum odio. Praesent quis lacus dignissim, pretium eros eu, ullamcorper neque.
    <i put first blank line here>
    <and second one here>
    Phasellus cursus diam at aliquet dictum. Aliquam erat volutpat. Pellentesque eleifend risus et pretium sagittis. Aliquam auctor tellus sed est consequat pretium. Cras sed erat eu nisl venenatis pretium eget a risus. Curabitur at tortor metus. Etiam nunc est, vulputate nec lacinia eget, ullamcorper nec massa. Mauris convallis euismod lobortis. Vivamus in vulputate justo.

    But my page in browser will look like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse urna lacus, commodo eget enim eget, tristique fermentum odio. Praesent quis lacus dignissim, pretium eros eu, ullamcorper neque.
    Phasellus cursus diam at aliquet dictum. Aliquam erat volutpat. Pellentesque eleifend risus et pretium sagittis. Aliquam auctor tellus sed est consequat pretium. Cras sed erat eu nisl venenatis pretium eget a risus. Curabitur at tortor metus. Etiam nunc est, vulputate nec lacinia eget, ullamcorper nec massa. Mauris convallis euismod lobortis. Vivamus in vulputate justo.

    And when I got back to WP editor it looks like this (after saving the post):

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse urna lacus, commodo eget enim eget, tristique fermentum odio. Praesent quis lacus dignissim, pretium eros eu, ullamcorper neque. 
    
    Phasellus cursus diam at aliquet dictum. Aliquam erat volutpat. Pellentesque eleifend risus et pretium sagittis. Aliquam auctor tellus sed est consequat pretium. Cras sed erat eu nisl venenatis pretium eget a risus. Curabitur at tortor metus. Etiam nunc est, vulputate nec lacinia eget, ullamcorper nec massa. Mauris convallis euismod lobortis. Vivamus in vulputate justo.

    What am I doing wrong?

    https://wordpress.org/plugins/wp-markdown/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    @stephenharris

    I don’t think you can put linebreaks after paragraphs with Markdown…

    If you want a line break then you add two spaces and then start on a new line. If you want a paragraph, you leave a blank line. If you leave multiple blank lines they get condensed down into 1 (so you end up with a paragraph).

    Putting two spaces and starting on new line does not work for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Linebreaks after paragraphs dont work’ is closed to new replies.
Skip to toolbar