WordPress.org

Ready to get started?Download WordPress

Forums

WP-Markdown
Linebreaks after paragraphs dont work (3 posts)

  1. ondrej.synacek
    Member
    Posted 5 months ago #

    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/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 3 months ago #

    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).

  3. ondrej.synacek
    Member
    Posted 2 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic