public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Inserting blank lines into a document using Markdown
Date: Sun,  7 Nov 2021 22:50:59 +0000	[thread overview]
Message-ID: <YYhYUwv7T8QvVCh1@localhost> (raw)
In-Reply-To: <18ED2596-53FC-44FF-A62B-4CF4ECFDAB84-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>

If I understand correctly the HTML reference, the <br> element must be in a <p> since it is a phrasing content (see here: https://html.spec.whatwg.org/multipage/dom.html#phrasing-content). This is what Pandoc does when outputting to HTML and the reason why it ignores the (illegal) <br> element when it reads your HTML sample. In any case, <br/> can't be put directly under a <body> of <section> element as you seem to wish to do.

Naturally, you could create a paragraph containing only a newline (<p><br/></p>), but you would get an additional interparagraph space, that's why it seems preferable to insert it at the beginning of the paragraph before which you want to set additional space.


Le Sunday 07 November 2021 à 04:51:12PM, Thomas Byskov Dalgaard a écrit :
> Hi Bastien!
> 
> Thanks for your idea, however there is not inserted a newline tag when I convert from Markdown.
> I wanted something like this (made it very simple in HTML)
> 
> ~~~
> <p>This is a paragraph. After it, a blank line will be inserted.</p>
> <br>
> <p>
> This is the following paragraph.</p>
> ~~~
> 
> If I convert this from HTML to Markdown via Pandoc I loose the blank lines, I wonder what small step I am missing here.
> 
> Best regards Thomas 
> > Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
> > 
> > Hi,
> > 
> > This can be achieved by escaping the first line at the begin of the paragraph:
> > 
> > ```
> > This is a paragraph. After it,
> > a blank line will be inserted.
> > 
> > \
> > This is the following paragraph.
> > ```
> > 
> > However, if your inserting of a blank line follows some general criteria, there could be a better way to do this than manual insertion.
> > 
> > Best,
> > 
> > Bastien
> > 
> > 
> > Le Sunday 07 November 2021 à 11:29:52AM, Thomas Byskov Dalgaard a écrit :
> >> Hi!
> >> 
> >> When I render documents  I have written in Markdown (the variant Pandoc defaults to) I find that I in a few cases want to include some blank lines before a new paragraph.
> >> Is there a way to do this easily when writing in Markdown?
> >> 
> >> Thanks
> >> 
> >> Best regards Thomas 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> >> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/A1998CCA-188A-4553-BF5C-5CFD5D44AADD%40coolfortheblind.dk.
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/YYetGzBODfdjyAcC%40localhost.
> 
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/18ED2596-53FC-44FF-A62B-4CF4ECFDAB84%40coolfortheblind.dk.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/YYhYUwv7T8QvVCh1%40localhost.


  parent reply	other threads:[~2021-11-07 22:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-07 10:29 Thomas Byskov Dalgaard
     [not found] ` <A1998CCA-188A-4553-BF5C-5CFD5D44AADD-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2021-11-07 10:40   ` Bastien DUMONT
2021-11-07 15:51     ` Thomas Byskov Dalgaard
     [not found]       ` <18ED2596-53FC-44FF-A62B-4CF4ECFDAB84-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2021-11-07 22:50         ` Bastien DUMONT [this message]
2022-01-05 10:57     ` Thomas Byskov Dalgaard
     [not found]       ` <3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2022-01-05 13:12         ` Bastien DUMONT
2022-01-05 19:49           ` Thomas Byskov Dalgaard
     [not found]             ` <4FF46680-CC8E-40B1-83B2-F9D6F7D219E4-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2022-01-05 21:18               ` Bastien DUMONT
2022-01-05 21:49                 ` Thomas Byskov Dalgaard
     [not found]                   ` <144A1587-D0B9-46F4-832C-6A2058F3E91F-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2022-01-06  8:31                     ` Bastien DUMONT
2022-01-11  9:48                       ` Thomas Byskov Dalgaard
     [not found]                         ` <EC9FF0CD-E797-4EDD-A326-55B53B6CA15E-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2022-01-11  9:52                           ` AW: " denis.maier-NSENcxR/0n0
     [not found]                             ` <f496f6d0b02746d6882a5459a50adf98-NSENcxR/0n0@public.gmane.org>
2022-01-11 10:33                               ` Bastien DUMONT
2022-01-11 10:52                               ` Thomas Byskov Dalgaard
     [not found]                                 ` <2152E028-0767-4D0B-93DB-85FDF10F617B-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2022-01-11 11:17                                   ` Bastien DUMONT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YYhYUwv7T8QvVCh1@localhost \
    --to=bastien.dumont-vwifzpto/vqstnjn9+bgxg@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).