From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29921 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Inserting blank lines into a document using Markdown Date: Thu, 6 Jan 2022 08:31:26 +0000 Message-ID: References: <3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388@coolfortheblind.dk> <4FF46680-CC8E-40B1-83B2-F9D6F7D219E4@coolfortheblind.dk> <144A1587-D0B9-46F4-832C-6A2058F3E91F@coolfortheblind.dk> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25054"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBSND4KHAMGQEUDRYW5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 07 20:17:33 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f60.google.com ([209.85.219.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n5uk0-0006Id-Oo for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 07 Jan 2022 20:17:32 +0100 Original-Received: by mail-qv1-f60.google.com with SMTP id jo14-20020a056214500e00b00411de582251sf5601389qvb.8 for ; Fri, 07 Jan 2022 11:17:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1641583051; cv=pass; d=google.com; s=arc-20160816; b=FZNUqm6xwJPzM5ABhrawOqusXT+JMy6hE1VugWQ4OmHI5wqVW9ALxjt8VbsjJR9Y2V ceethRXK3PDdhwl6n6kApOTAKbf2DuDUD4GBkmoMbfOxw4EGJn3er8sl6uoovfIWRCKr rI0AJykFftbB9pMQDTiyd/Yf65JqSp+fKGJgBB3s9We9gcvgh26UEtPA2UwTVjkhr25R H2qwJVgsZPdS8vg87Eb+WOkgiAoml/FfE79FqVhi5/sjYPCtrR7N1/+rVC0A0eL0AJMK /YpLq+vnjQ8JLWSMzw2Qf8iYWTSqfbpRXVfiRc8gU6ItCr6flJcCwwz7ZSQL015LGGxD DqjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=T588xiaGUyaHK9j41G/pURnPJi8Iur2nEFGx6NfmT54=; b=IxYZUPrKk6N4Fx2c1lo53F28rDzvNy51PRaW+JGuEs7zthXKKOj9Ok8kPZt49MWjqb srgps4Ia79iMF2QfIMorRtT34THGKV4hWcawTHr5uvmZsZY8WFrucPYiSQJYfqy3gAWz K44zkk/oZciqCOzxq+FrILjVai4apup6I/pCDtbgppwpnvk/UfB6L4uo3IyAmt+Y7pHk u8S20G45/HrPtMRptLDbYNVUgovtECEBL7GQRrilKQ1B5m5n5VWTprR/LZoIjPbUnlHI f9+Layaie5iA6V+0+yIK1cSBjd/dJ9rwRTL+yQau/QZ4E+9cfDDRF3YuszH31Pghj/f7 I5eA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=RXeM5u0Z; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=T588xiaGUyaHK9j41G/pURnPJi8Iur2nEFGx6NfmT54=; b=j2TvQZCx/iiKt78w/yhgZk3qK4bhFDTvsrJxWsS35aHm9VrUCPWk0whTHrRzRtVJyA Bbp7qcqq2XltYBzH/taSYpAkgNmMDY3EUjudeTkqv7AlY0CX9XgseSiigoyewGqjcMn0 O+nK1uB6Viw3dkCdCBnxX7B4pgUF7F/+xri0bBx6BiDh6GVlwiiH1hPIluc8C0YtXKpO 0uZvhS2js52Y6kVJ5OFsO8h9bcdSWokpTE8FqeuDyY53MJ9TxtVLLObHg+Xv3/ZpIQ7W IGfNEVRzi/kyposVYUFARRayilBRp+EXejaCWK7t4W7e91fkOJdMNtAy7lc1WxTGSlIL mmKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=T588xiaGUyaHK9j41G/pURnPJi8Iur2nEFGx6NfmT54=; b=3ml8d7x1MIuoIITLrZ0ynFYln4rVOsA50D9RlUTIn0xiTNfkPt5jAf4bsAt48GouVr wlNH9ZYlwLUMcDVHFLnuZH5eGuSugNOE6Z3ZV3aofIhEBHOaa4vSDTTMv88UP3Eh/joq Po+4N9kyFcsPziII3cJQnkG3IRV/8ZRpX6tnA1jdjAZk3Wnm/YwxAqwvr0JNvMgi8Vlb KAJx9Vo2WGGw7VzZgY6zaV+rSHf9BDh9jcwgUyXrdkLVtSfJRzMBClWocRsmjfhv9yRe w0WHOji57vV1muJ17nkYADJ+38NWTMOiCYBCjdBDMy0R7qngLxAXAJNLRulofYOFZBGt Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531v7F3jflYxVX34gUmS2fIOP3CtRWNImckqlgA75CPfSsWhWu0a mg8Oty/2ozGKRq6wm/GSOLY= X-Google-Smtp-Source: ABdhPJy/1QlQjzScDBCkzGkwI90ppKsHz7ZJD2wokUSsT6oJ7pRUiU3Inezc+yBJEFUduw4AvOXkag== X-Received: by 2002:a05:620a:4448:: with SMTP id w8mr47330275qkp.622.1641583051472; Fri, 07 Jan 2022 11:17:31 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ae9:ec0d:: with SMTP id h13ls2498201qkg.3.gmail; Fri, 07 Jan 2022 11:17:29 -0800 (PST) X-Received: by 2002:a05:620a:147c:: with SMTP id j28mr32116643qkl.416.1641583049769; Fri, 07 Jan 2022 11:17:29 -0800 (PST) Original-Received: by 2002:a37:ef0d:0:b0:476:3d6e:aa63 with SMTP id af79cd13be357-4776e7eb513ms85a; Thu, 6 Jan 2022 00:33:28 -0800 (PST) X-Received: by 2002:a05:600c:1f0c:: with SMTP id bd12mr6061299wmb.82.1641458008228; Thu, 06 Jan 2022 00:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641458008; cv=none; d=google.com; s=arc-20160816; b=LY5u6aTfCnIg+WV6gVd0fQaT4fDtUMU7pYVv6WkOO91RTYCoCzoNppmBS5nVeDG6VJ M7SAh/VPwkyzDvXVx3yUQKOWJP0BCglDsdqSlWZPeS3XvBli8u/KFf9wnOmEfLvoijDw NfeCHBgYVUKEjC601sn5KugET5+7gjq7Pi99HfS5RKoFA26/N/2/YOKxdF2QOfzxG+LX Bar0L0C4MaFo/f39OnfBDknFgQFab97tU24CYIEC5j9bMieDDwsNHad+Mz9MvuRAJYTq gg4mcO8MrOsP0bdQE9G/fzg1/rVpHFd8mPXCa2K8sIEVxvVxujja85gHK24icCU+wnQZ 0rOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=0rczRv49PwgOO2YQ2Vq2IL//109U/N1nD6RuAopPC/I=; b=wXd96DzuNi3t0TZvxELhnMA+9h6lU4mzL/M6lNCaBorCOxwUZ1kRn1vjyi79a85bD9 wNmukO8ypyhyruEHuBjif+J82kCWV1jgdBnnhTooVkpnxQr+DPAurInEckkQ+QZ8DW1I Ea//0ZOQU5w10SFptg/wyQMy01emvE1zXn2FLUogC/QlInvqCQer9ezhzz60nCMJt5Jj cwDXVl/FbIjqSH4QGJc66ODrvqysUw4Fdx417Y4t9es3kaYnbwlBtRsp84mbsYmtnI9K +qSQRDTYMfDp76vO/hDCYFj50bkFH7x0b5rtiLjPeeKWeejnsArT3082yL2mvKb63o82 qMnQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=RXeM5u0Z; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id e5si84963wrj.8.2022.01.06.00.33.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 00:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id CFD05240026 for ; Thu, 6 Jan 2022 09:33:27 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JV0470q8Tz6tmY for ; Thu, 6 Jan 2022 09:33:27 +0100 (CET) Content-Disposition: inline In-Reply-To: <144A1587-D0B9-46F4-832C-6A2058F3E91F-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=RXeM5u0Z; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29921 Archived-At: I checked the docx file (including its source code): it is perfectly normal= . The problem may be with your displaying software. Le Wednesday 05 January 2022 =C3=A0 10:49:35PM, Thomas Byskov Dalgaard a = =C3=A9crit : > Hi Bastien! >=20 > I have tried to attach the two files. >=20 > Please let me know your findings here. >=20 > Thanks in advance >=20 > Best regards Thomas >=20 >=20 > > Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT : > >=20 > > Sorry, I just tried with pandoc 2.16.2 and it worked as expected... May= be you could share you exact input and output files restricted to this mini= mal example? > >=20 > > Le Wednesday 05 January 2022 =C3=A0 08:49:54PM, Thomas Byskov Dalgaard = a =C3=A9crit : > >> Hi Bastien! > >>=20 > >> Here is the result from 2.16.2 converted from Markdown to docx: > >>=20 > >> This is a paragraph. After it, a blank line will be inserted. > >>=20 > > This is the following paragraph. > >>=20 > >> I see a strange character there where the blank line should have ben i= nserted. > >>=20 > >> I use Markdown quite extensively when using Braille, the way blind and= visually impaired people read with their fingers. > >> I have a braille display connected to my computer and therefor I can g= et nice results via Markdown, I use Pandoc for converting documents when I = need them to look elegant. > >> Yes, I could use Word, but I preer Markdown and plain text. :) > >> Do you think I have found a bug here? > >>=20 > >> Best regards Thomas=20 > >>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT : > >>>=20 > >>> I don't get any special character in DOCX, but I still use pandoc 2.1= 4. If the exact code I wrote produces one in v. 2.16.2, this may be a bug. > >>>=20 > >>> Don't write the backslash between two blank lines if you want only on= e blank line: this indicates a paragraph containing a line break, so you wi= ll end up with two blank lines in the output. Instead, write the backslash = on the line immediately preceding the paragraph, as I showed in my example. > >>>=20 > >>> In what cases do you want to insert some blank space before a paragra= ph? It would probably be better achieved through styling. > >>>=20 > >>> Le Wednesday 05 January 2022 =C3=A0 11:57:49AM, Thomas Byskov Dalgaar= d a =C3=A9crit : > >>>> Hi Bastien! > >>>>=20 > >>>> Thanks for your idea. > >>>>=20 > >>>> I am a little behind on HTML 5 specs, because I mostly work in Markd= own. > >>>>=20 > >>>> The following worked: > >>>>=20 > >>>> ~~~ > >>>> This is the first paragraph. After this sentence there is inserted a= blank line before the next paragraph. > >>>>=20 > >>>> \ > >>>>=20 > >>>> Here starts the next paragraph. > >>>> ~~~ > >>>>=20 > >>>> I noticed though that this inserts a special character when I conver= t from Markdown to docx-files. It looks like the escaped linebreak does som= ething unexpected. > >>>>=20 > >>>> I also noticed that If I want to insert a heading I can't get blank = lines before this element in docx-files as well. > >>>> How can I troubleshot this? > >>>>=20 > >>>> Best regards Thomas=20 > >>>>=20 > >>>>> Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT : > >>>>>=20 > >>>>> Hi, > >>>>>=20 > >>>>> This can be achieved by escaping the first line at the begin of the= paragraph: > >>>>>=20 > >>>>> ``` > >>>>> This is a paragraph. After it, > >>>>> a blank line will be inserted. > >>>>>=20 > >>>>> \ > >>>>> This is the following paragraph. > >>>>> ``` > >>>>>=20 > >>>>> However, if your inserting of a blank line follows some general cri= teria, there could be a better way to do this than manual insertion. > >>>>>=20 > >>>>> Best, > >>>>>=20 > >>>>> Bastien > >>>>>=20 > >>>>>=20 > >>>>> Le Sunday 07 November 2021 =C3=A0 11:29:52AM, Thomas Byskov Dalgaar= d a =C3=A9crit : > >>>>>> Hi! > >>>>>>=20 > >>>>>> When I render documents I have written in Markdown (the variant P= andoc 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? > >>>>>>=20 > >>>>>> Thanks > >>>>>>=20 > >>>>>> Best regards Thomas=20 > >>>>>>=20 > >>>>>> --=20 > >>>>>> 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%40coolforthebl= ind.dk. > >>>>>=20 > >>>>> --=20 > >>>>> 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, s= end 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. > >>>>=20 > >>>> --=20 > >>>> You received this message because you are subscribed to the Google G= roups "pandoc-discuss" group. > >>>> To unsubscribe from this group and stop receiving emails from it, se= nd 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%40coolfortheblin= d.dk. > >>>=20 > >>> --=20 > >>> You received this message because you are subscribed to the Google Gr= oups "pandoc-discuss" group. > >>> To unsubscribe from this group and stop receiving emails from it, sen= d 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/YdWZKXIbH6G7pBnQ%40localhost. > >>=20 > >> --=20 > >> You received this message because you are subscribed to the Google Gro= ups "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/m= sgid/pandoc-discuss/4FF46680-CC8E-40B1-83B2-F9D6F7D219E4%40coolfortheblind.= dk. > >=20 > > --=20 > > You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/YdYLI8gO7cfQ431K%40localhost. >=20 > --=20 > 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/msgi= d/pandoc-discuss/144A1587-D0B9-46F4-832C-6A2058F3E91F%40coolfortheblind.dk. --=20 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 e= mail 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/Ydao3mhsl7uFAysg%40localhost.