public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Inserting blank lines into a document using Markdown
@ 2021-11-07 10:29 Thomas Byskov Dalgaard
       [not found] ` <A1998CCA-188A-4553-BF5C-5CFD5D44AADD-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2021-11-07 10:29 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [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
  2022-01-05 10:57     ` Thomas Byskov Dalgaard
  0 siblings, 2 replies; 15+ messages in thread
From: Bastien DUMONT @ 2021-11-07 10:40 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
  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>
  2022-01-05 10:57     ` Thomas Byskov Dalgaard
  1 sibling, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2021-11-07 15:51 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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-VwIFZPTo/vqzQB+pC5nmwQ@public.gmane.orgt>:
> 
> 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.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [not found]       ` <18ED2596-53FC-44FF-A62B-4CF4ECFDAB84-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
@ 2021-11-07 22:50         ` Bastien DUMONT
  0 siblings, 0 replies; 15+ messages in thread
From: Bastien DUMONT @ 2021-11-07 22:50 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
  2021-11-07 10:40   ` Bastien DUMONT
  2021-11-07 15:51     ` Thomas Byskov Dalgaard
@ 2022-01-05 10:57     ` Thomas Byskov Dalgaard
       [not found]       ` <3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
  1 sibling, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2022-01-05 10:57 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi Bastien!

Thanks for your idea.

I am a little behind on HTML 5 specs, because I mostly work in Markdown.

The following worked:

~~~
This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.

\

Here starts the next paragraph.
~~~

I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.

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?

Best regards Thomas 

> Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT <bastien.dumont-VwIFZPTo/vqzQB+pC5nmwQ@public.gmane.orgt>:
> 
> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%40coolfortheblind.dk.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [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
  0 siblings, 1 reply; 15+ messages in thread
From: Bastien DUMONT @ 2022-01-05 13:12 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I don't get any special character in DOCX, but I still use pandoc 2.14. If the exact code I wrote produces one in v. 2.16.2, this may be a bug.

Don't write the backslash between two blank lines if you want only one blank line: this indicates a paragraph containing a line break, so you will 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.

In what cases do you want to insert some blank space before a paragraph? It would probably be better achieved through styling.

Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov Dalgaard a écrit :
> Hi Bastien!
> 
> Thanks for your idea.
> 
> I am a little behind on HTML 5 specs, because I mostly work in Markdown.
> 
> The following worked:
> 
> ~~~
> This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.
> 
> \
> 
> Here starts the next paragraph.
> ~~~
> 
> I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.
> 
> 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?
> 
> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%40localhost.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
  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>
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2022-01-05 19:49 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi Bastien!

Here is the result from 2.16.2 converted from Markdown to docx:

This is a paragraph. After it, a blank line will be inserted.

This is the following paragraph.

I see a strange character there where the blank line should have ben inserted.

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 get 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?

Best regards Thomas 
> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT <bastien.dumont-VwIFZPTo/vqzQB+pC5nmwQ@public.gmane.orgt>:
> 
> I don't get any special character in DOCX, but I still use pandoc 2.14. If the exact code I wrote produces one in v. 2.16.2, this may be a bug.
> 
> Don't write the backslash between two blank lines if you want only one blank line: this indicates a paragraph containing a line break, so you will 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.
> 
> In what cases do you want to insert some blank space before a paragraph? It would probably be better achieved through styling.
> 
> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov Dalgaard a écrit :
>> Hi Bastien!
>> 
>> Thanks for your idea.
>> 
>> I am a little behind on HTML 5 specs, because I mostly work in Markdown.
>> 
>> The following worked:
>> 
>> ~~~
>> This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.
>> 
>> \
>> 
>> Here starts the next paragraph.
>> ~~~
>> 
>> I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.
>> 
>> 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?
>> 
>> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-83B2-F9D6F7D219E4%40coolfortheblind.dk.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [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
  0 siblings, 1 reply; 15+ messages in thread
From: Bastien DUMONT @ 2022-01-05 21:18 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe you could share you exact input and output files restricted to this minimal example?

Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a écrit :
> Hi Bastien!
> 
> Here is the result from 2.16.2 converted from Markdown to docx:
> 
> This is a paragraph. After it, a blank line will be inserted.
> 
This is the following paragraph.
> 
> I see a strange character there where the blank line should have ben inserted.
> 
> 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 get 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?
> 
> Best regards Thomas 
> > Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
> > 
> > I don't get any special character in DOCX, but I still use pandoc 2.14. If the exact code I wrote produces one in v. 2.16.2, this may be a bug.
> > 
> > Don't write the backslash between two blank lines if you want only one blank line: this indicates a paragraph containing a line break, so you will 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.
> > 
> > In what cases do you want to insert some blank space before a paragraph? It would probably be better achieved through styling.
> > 
> > Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov Dalgaard a écrit :
> >> Hi Bastien!
> >> 
> >> Thanks for your idea.
> >> 
> >> I am a little behind on HTML 5 specs, because I mostly work in Markdown.
> >> 
> >> The following worked:
> >> 
> >> ~~~
> >> This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.
> >> 
> >> \
> >> 
> >> Here starts the next paragraph.
> >> ~~~
> >> 
> >> I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.
> >> 
> >> 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?
> >> 
> >> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%40localhost.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
  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>
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2022-01-05 21:49 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 6713 bytes --]

Hi Bastien!

I have tried to attach the two files.

Please let me know your findings here.

Thanks in advance

Best regards Thomas


> Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT <bastien.dumont-VwIFZPTo/vqzQB+pC5nmwQ@public.gmane.orgt>:
> 
> Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe you could share you exact input and output files restricted to this minimal example?
> 
> Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a écrit :
>> Hi Bastien!
>> 
>> Here is the result from 2.16.2 converted from Markdown to docx:
>> 
>> This is a paragraph. After it, a blank line will be inserted.
>> 
> This is the following paragraph.
>> 
>> I see a strange character there where the blank line should have ben inserted.
>> 
>> 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 get 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?
>> 
>> Best regards Thomas 
>>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
>>> 
>>> I don't get any special character in DOCX, but I still use pandoc 2.14. If the exact code I wrote produces one in v. 2.16.2, this may be a bug.
>>> 
>>> Don't write the backslash between two blank lines if you want only one blank line: this indicates a paragraph containing a line break, so you will 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.
>>> 
>>> In what cases do you want to insert some blank space before a paragraph? It would probably be better achieved through styling.
>>> 
>>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov Dalgaard a écrit :
>>>> Hi Bastien!
>>>> 
>>>> Thanks for your idea.
>>>> 
>>>> I am a little behind on HTML 5 specs, because I mostly work in Markdown.
>>>> 
>>>> The following worked:
>>>> 
>>>> ~~~
>>>> This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.
>>>> 
>>>> \
>>>> 
>>>> Here starts the next paragraph.
>>>> ~~~
>>>> 
>>>> I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.
>>>> 
>>>> 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?
>>>> 
>>>> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-832C-6A2058F3E91F%40coolfortheblind.dk.

[-- Attachment #2: blank lines.md --]
[-- Type: application/octet-stream, Size: 253 bytes --]

This is a paragraph. After it, a blank line will be inserted.

\
This is the following paragraph.


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

[-- Attachment #3: blank lines.docx --]
[-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 9856 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [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
  0 siblings, 1 reply; 15+ messages in thread
From: Bastien DUMONT @ 2022-01-06  8:31 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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 à 10:49:35PM, Thomas Byskov Dalgaard a écrit :
> Hi Bastien!
> 
> I have tried to attach the two files.
> 
> Please let me know your findings here.
> 
> Thanks in advance
> 
> Best regards Thomas
> 
> 
> > Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
> > 
> > Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe you could share you exact input and output files restricted to this minimal example?
> > 
> > Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a écrit :
> >> Hi Bastien!
> >> 
> >> Here is the result from 2.16.2 converted from Markdown to docx:
> >> 
> >> This is a paragraph. After it, a blank line will be inserted.
> >> 
> > This is the following paragraph.
> >> 
> >> I see a strange character there where the blank line should have ben inserted.
> >> 
> >> 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 get 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?
> >> 
> >> Best regards Thomas 
> >>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
> >>> 
> >>> I don't get any special character in DOCX, but I still use pandoc 2.14. If the exact code I wrote produces one in v. 2.16.2, this may be a bug.
> >>> 
> >>> Don't write the backslash between two blank lines if you want only one blank line: this indicates a paragraph containing a line break, so you will 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.
> >>> 
> >>> In what cases do you want to insert some blank space before a paragraph? It would probably be better achieved through styling.
> >>> 
> >>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov Dalgaard a écrit :
> >>>> Hi Bastien!
> >>>> 
> >>>> Thanks for your idea.
> >>>> 
> >>>> I am a little behind on HTML 5 specs, because I mostly work in Markdown.
> >>>> 
> >>>> The following worked:
> >>>> 
> >>>> ~~~
> >>>> This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.
> >>>> 
> >>>> \
> >>>> 
> >>>> Here starts the next paragraph.
> >>>> ~~~
> >>>> 
> >>>> I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.
> >>>> 
> >>>> 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?
> >>>> 
> >>>> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-832C-6A2058F3E91F%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/Ydao3mhsl7uFAysg%40localhost.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
  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>
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2022-01-11  9:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi Bastien!

Interesting.

How did you read the source from the Word document?
I may look into this some more. So I am interested to know how to get into reading docx source, then I might find out what to do about the issue I am having.
Thanks
Best regards Thomas 

> Den 6. jan. 2022 kl. 09.31 skrev Bastien DUMONT <bastien.dumont-VwIFZPTo/vqzQB+pC5nmwQ@public.gmane.orgt>:
> 
> 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 à 10:49:35PM, Thomas Byskov Dalgaard a écrit :
>> Hi Bastien!
>> 
>> I have tried to attach the two files.
>> 
>> Please let me know your findings here.
>> 
>> Thanks in advance
>> 
>> Best regards Thomas
>> 
>> 
>>> Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
>>> 
>>> Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe you could share you exact input and output files restricted to this minimal example?
>>> 
>>> Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a écrit :
>>>> Hi Bastien!
>>>> 
>>>> Here is the result from 2.16.2 converted from Markdown to docx:
>>>> 
>>>> This is a paragraph. After it, a blank line will be inserted.
>>>> 
>>> This is the following paragraph.
>>>> 
>>>> I see a strange character there where the blank line should have ben inserted.
>>>> 
>>>> 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 get 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?
>>>> 
>>>> Best regards Thomas 
>>>>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT <bastien.dumont@posteo.net>:
>>>>> 
>>>>> I don't get any special character in DOCX, but I still use pandoc 2.14. If the exact code I wrote produces one in v. 2.16.2, this may be a bug.
>>>>> 
>>>>> Don't write the backslash between two blank lines if you want only one blank line: this indicates a paragraph containing a line break, so you will 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.
>>>>> 
>>>>> In what cases do you want to insert some blank space before a paragraph? It would probably be better achieved through styling.
>>>>> 
>>>>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov Dalgaard a écrit :
>>>>>> Hi Bastien!
>>>>>> 
>>>>>> Thanks for your idea.
>>>>>> 
>>>>>> I am a little behind on HTML 5 specs, because I mostly work in Markdown.
>>>>>> 
>>>>>> The following worked:
>>>>>> 
>>>>>> ~~~
>>>>>> This is the first paragraph. After this sentence there is inserted a blank line before the next paragraph.
>>>>>> 
>>>>>> \
>>>>>> 
>>>>>> Here starts the next paragraph.
>>>>>> ~~~
>>>>>> 
>>>>>> I noticed though that this inserts a special character when I convert from Markdown to docx-files. It looks like the escaped linebreak does something unexpected.
>>>>>> 
>>>>>> 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?
>>>>>> 
>>>>>> 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/3B3F5A70-0DF9-4D74-B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-832C-6A2058F3E91F%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/Ydao3mhsl7uFAysg%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/EC9FF0CD-E797-4EDD-A326-55B53B6CA15E%40coolfortheblind.dk.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* AW: Inserting blank lines into a document using Markdown
       [not found]                         ` <EC9FF0CD-E797-4EDD-A326-55B53B6CA15E-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
@ 2022-01-11  9:52                           ` denis.maier-NSENcxR/0n0
       [not found]                             ` <f496f6d0b02746d6882a5459a50adf98-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2022-01-11  9:52 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

A docx file is just a zip file consisting of a bunch of xml files. Change the file extension to zip, then you can unzip that file and investigate the contents.

> -----Ursprüngliche Nachricht-----
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Thomas Byskov Dalgaard
> Gesendet: Dienstag, 11. Januar 2022 10:49
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> Betreff: Re: Inserting blank lines into a document using Markdown
> 
> Hi Bastien!
> 
> Interesting.
> 
> How did you read the source from the Word document?
> I may look into this some more. So I am interested to know how to get into
> reading docx source, then I might find out what to do about the issue I am
> having.
> Thanks
> Best regards Thomas
> 
> > Den 6. jan. 2022 kl. 09.31 skrev Bastien DUMONT
> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >
> > 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 à 10:49:35PM, Thomas Byskov Dalgaard a
> écrit :
> >> Hi Bastien!
> >>
> >> I have tried to attach the two files.
> >>
> >> Please let me know your findings here.
> >>
> >> Thanks in advance
> >>
> >> Best regards Thomas
> >>
> >>
> >>> Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT
> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>>
> >>> Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe
> you could share you exact input and output files restricted to this minimal
> example?
> >>>
> >>> Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a
> écrit :
> >>>> Hi Bastien!
> >>>>
> >>>> Here is the result from 2.16.2 converted from Markdown to docx:
> >>>>
> >>>> This is a paragraph. After it, a blank line will be inserted.
> >>>>
> >>> This is the following paragraph.
> >>>>
> >>>> I see a strange character there where the blank line should have ben
> inserted.
> >>>>
> >>>> 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
> get 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?
> >>>>
> >>>> Best regards Thomas
> >>>>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT
> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>>>>
> >>>>> I don't get any special character in DOCX, but I still use pandoc 2.14. If
> the exact code I wrote produces one in v. 2.16.2, this may be a bug.
> >>>>>
> >>>>> Don't write the backslash between two blank lines if you want only
> one blank line: this indicates a paragraph containing a line break, so you will
> 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.
> >>>>>
> >>>>> In what cases do you want to insert some blank space before a
> paragraph? It would probably be better achieved through styling.
> >>>>>
> >>>>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov
> Dalgaard a écrit :
> >>>>>> Hi Bastien!
> >>>>>>
> >>>>>> Thanks for your idea.
> >>>>>>
> >>>>>> I am a little behind on HTML 5 specs, because I mostly work in
> Markdown.
> >>>>>>
> >>>>>> The following worked:
> >>>>>>
> >>>>>> ~~~
> >>>>>> This is the first paragraph. After this sentence there is inserted a
> blank line before the next paragraph.
> >>>>>>
> >>>>>> \
> >>>>>>
> >>>>>> Here starts the next paragraph.
> >>>>>> ~~~
> >>>>>>
> >>>>>> I noticed though that this inserts a special character when I convert
> from Markdown to docx-files. It looks like the escaped linebreak does
> something unexpected.
> >>>>>>
> >>>>>> 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?
> >>>>>>
> >>>>>> Best regards Thomas
> >>>>>>
> >>>>>>> Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT
> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>>>>>>
> >>>>>>> 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/3B3F5A70-0DF9-4D74-
> B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-
> 83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-
> 832C-6A2058F3E91F%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/Ydao3mhsl7uFAysg%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/EC9FF0CD-E797-4EDD-
> A326-55B53B6CA15E%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/f496f6d0b02746d6882a5459a50adf98%40unibe.ch.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [not found]                             ` <f496f6d0b02746d6882a5459a50adf98-NSENcxR/0n0@public.gmane.org>
@ 2022-01-11 10:33                               ` Bastien DUMONT
  2022-01-11 10:52                               ` Thomas Byskov Dalgaard
  1 sibling, 0 replies; 15+ messages in thread
From: Bastien DUMONT @ 2022-01-11 10:33 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

But since there is nothing abnormal in it, the problem probably comes from how your viewer/editor handles line breaks.

Le Tuesday 11 January 2022 à 09:52:22AM, denis.maier-NSENcxR/0n0@public.gmane.org a écrit :
> A docx file is just a zip file consisting of a bunch of xml files. Change the file extension to zip, then you can unzip that file and investigate the contents.
> 
> > -----Ursprüngliche Nachricht-----
> > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Thomas Byskov Dalgaard
> > Gesendet: Dienstag, 11. Januar 2022 10:49
> > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > Betreff: Re: Inserting blank lines into a document using Markdown
> > 
> > Hi Bastien!
> > 
> > Interesting.
> > 
> > How did you read the source from the Word document?
> > I may look into this some more. So I am interested to know how to get into
> > reading docx source, then I might find out what to do about the issue I am
> > having.
> > Thanks
> > Best regards Thomas
> > 
> > > Den 6. jan. 2022 kl. 09.31 skrev Bastien DUMONT
> > <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> > >
> > > 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 à 10:49:35PM, Thomas Byskov Dalgaard a
> > écrit :
> > >> Hi Bastien!
> > >>
> > >> I have tried to attach the two files.
> > >>
> > >> Please let me know your findings here.
> > >>
> > >> Thanks in advance
> > >>
> > >> Best regards Thomas
> > >>
> > >>
> > >>> Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT
> > <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> > >>>
> > >>> Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe
> > you could share you exact input and output files restricted to this minimal
> > example?
> > >>>
> > >>> Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a
> > écrit :
> > >>>> Hi Bastien!
> > >>>>
> > >>>> Here is the result from 2.16.2 converted from Markdown to docx:
> > >>>>
> > >>>> This is a paragraph. After it, a blank line will be inserted.
> > >>>>
> > >>> This is the following paragraph.
> > >>>>
> > >>>> I see a strange character there where the blank line should have ben
> > inserted.
> > >>>>
> > >>>> 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
> > get 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?
> > >>>>
> > >>>> Best regards Thomas
> > >>>>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT
> > <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> > >>>>>
> > >>>>> I don't get any special character in DOCX, but I still use pandoc 2.14. If
> > the exact code I wrote produces one in v. 2.16.2, this may be a bug.
> > >>>>>
> > >>>>> Don't write the backslash between two blank lines if you want only
> > one blank line: this indicates a paragraph containing a line break, so you will
> > 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.
> > >>>>>
> > >>>>> In what cases do you want to insert some blank space before a
> > paragraph? It would probably be better achieved through styling.
> > >>>>>
> > >>>>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov
> > Dalgaard a écrit :
> > >>>>>> Hi Bastien!
> > >>>>>>
> > >>>>>> Thanks for your idea.
> > >>>>>>
> > >>>>>> I am a little behind on HTML 5 specs, because I mostly work in
> > Markdown.
> > >>>>>>
> > >>>>>> The following worked:
> > >>>>>>
> > >>>>>> ~~~
> > >>>>>> This is the first paragraph. After this sentence there is inserted a
> > blank line before the next paragraph.
> > >>>>>>
> > >>>>>> \
> > >>>>>>
> > >>>>>> Here starts the next paragraph.
> > >>>>>> ~~~
> > >>>>>>
> > >>>>>> I noticed though that this inserts a special character when I convert
> > from Markdown to docx-files. It looks like the escaped linebreak does
> > something unexpected.
> > >>>>>>
> > >>>>>> 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?
> > >>>>>>
> > >>>>>> Best regards Thomas
> > >>>>>>
> > >>>>>>> Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT
> > <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> > >>>>>>>
> > >>>>>>> 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/3B3F5A70-0DF9-4D74-
> > B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-
> > 83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-
> > 832C-6A2058F3E91F%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/Ydao3mhsl7uFAysg%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/EC9FF0CD-E797-4EDD-
> > A326-55B53B6CA15E%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/f496f6d0b02746d6882a5459a50adf98%40unibe.ch.

-- 
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/Yd1c4h5zN/T2O/kF%40localhost.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [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>
  1 sibling, 1 reply; 15+ messages in thread
From: Thomas Byskov Dalgaard @ 2022-01-11 10:52 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi Denis and Bastien!

Thanks for this, however when I look at the different xml-files I couldn't find the text I typed in the Word document. Strange.

Best regards Thomas 

> Den 11. jan. 2022 kl. 10.52 skrev denis.maier-NSENcxR/0n0@public.gmane.org:
> 
> A docx file is just a zip file consisting of a bunch of xml files. Change the file extension to zip, then you can unzip that file and investigate the contents.
> 
>> -----Ursprüngliche Nachricht-----
>> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
>> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Thomas Byskov Dalgaard
>> Gesendet: Dienstag, 11. Januar 2022 10:49
>> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> Betreff: Re: Inserting blank lines into a document using Markdown
>> 
>> Hi Bastien!
>> 
>> Interesting.
>> 
>> How did you read the source from the Word document?
>> I may look into this some more. So I am interested to know how to get into
>> reading docx source, then I might find out what to do about the issue I am
>> having.
>> Thanks
>> Best regards Thomas
>> 
>>> Den 6. jan. 2022 kl. 09.31 skrev Bastien DUMONT
>> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
>>> 
>>> 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 à 10:49:35PM, Thomas Byskov Dalgaard a
>> écrit :
>>>> Hi Bastien!
>>>> 
>>>> I have tried to attach the two files.
>>>> 
>>>> Please let me know your findings here.
>>>> 
>>>> Thanks in advance
>>>> 
>>>> Best regards Thomas
>>>> 
>>>> 
>>>>> Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT
>> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
>>>>> 
>>>>> Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe
>> you could share you exact input and output files restricted to this minimal
>> example?
>>>>> 
>>>>> Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a
>> écrit :
>>>>>> Hi Bastien!
>>>>>> 
>>>>>> Here is the result from 2.16.2 converted from Markdown to docx:
>>>>>> 
>>>>>> This is a paragraph. After it, a blank line will be inserted.
>>>>>> 
>>>>> This is the following paragraph.
>>>>>> 
>>>>>> I see a strange character there where the blank line should have ben
>> inserted.
>>>>>> 
>>>>>> 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
>> get 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?
>>>>>> 
>>>>>> Best regards Thomas
>>>>>>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT
>> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
>>>>>>> 
>>>>>>> I don't get any special character in DOCX, but I still use pandoc 2.14. If
>> the exact code I wrote produces one in v. 2.16.2, this may be a bug.
>>>>>>> 
>>>>>>> Don't write the backslash between two blank lines if you want only
>> one blank line: this indicates a paragraph containing a line break, so you will
>> 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.
>>>>>>> 
>>>>>>> In what cases do you want to insert some blank space before a
>> paragraph? It would probably be better achieved through styling.
>>>>>>> 
>>>>>>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov
>> Dalgaard a écrit :
>>>>>>>> Hi Bastien!
>>>>>>>> 
>>>>>>>> Thanks for your idea.
>>>>>>>> 
>>>>>>>> I am a little behind on HTML 5 specs, because I mostly work in
>> Markdown.
>>>>>>>> 
>>>>>>>> The following worked:
>>>>>>>> 
>>>>>>>> ~~~
>>>>>>>> This is the first paragraph. After this sentence there is inserted a
>> blank line before the next paragraph.
>>>>>>>> 
>>>>>>>> \
>>>>>>>> 
>>>>>>>> Here starts the next paragraph.
>>>>>>>> ~~~
>>>>>>>> 
>>>>>>>> I noticed though that this inserts a special character when I convert
>> from Markdown to docx-files. It looks like the escaped linebreak does
>> something unexpected.
>>>>>>>> 
>>>>>>>> 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?
>>>>>>>> 
>>>>>>>> Best regards Thomas
>>>>>>>> 
>>>>>>>>> Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT
>> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
>>>>>>>>> 
>>>>>>>>> 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/3B3F5A70-0DF9-4D74-
>> B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-
>> 83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-
>> 832C-6A2058F3E91F%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/Ydao3mhsl7uFAysg%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/EC9FF0CD-E797-4EDD-
>> A326-55B53B6CA15E%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/f496f6d0b02746d6882a5459a50adf98%40unibe.ch.

-- 
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/2152E028-0767-4D0B-93DB-85FDF10F617B%40coolfortheblind.dk.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Inserting blank lines into a document using Markdown
       [not found]                                 ` <2152E028-0767-4D0B-93DB-85FDF10F617B-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
@ 2022-01-11 11:17                                   ` Bastien DUMONT
  0 siblings, 0 replies; 15+ messages in thread
From: Bastien DUMONT @ 2022-01-11 11:17 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

See in word/documents.xml. You will be able to find some explanations here: http://officeopenxml.com/anatomyofOOXML.php

Le Tuesday 11 January 2022 à 11:52:23AM, Thomas Byskov Dalgaard a écrit :
> Hi Denis and Bastien!
> 
> Thanks for this, however when I look at the different xml-files I couldn't find the text I typed in the Word document. Strange.
> 
> Best regards Thomas 
> 
> > Den 11. jan. 2022 kl. 10.52 skrev denis.maier-NSENcxR/0n0@public.gmane.org:
> > 
> > A docx file is just a zip file consisting of a bunch of xml files. Change the file extension to zip, then you can unzip that file and investigate the contents.
> > 
> >> -----Ursprüngliche Nachricht-----
> >> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> >> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Thomas Byskov Dalgaard
> >> Gesendet: Dienstag, 11. Januar 2022 10:49
> >> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> >> Betreff: Re: Inserting blank lines into a document using Markdown
> >> 
> >> Hi Bastien!
> >> 
> >> Interesting.
> >> 
> >> How did you read the source from the Word document?
> >> I may look into this some more. So I am interested to know how to get into
> >> reading docx source, then I might find out what to do about the issue I am
> >> having.
> >> Thanks
> >> Best regards Thomas
> >> 
> >>> Den 6. jan. 2022 kl. 09.31 skrev Bastien DUMONT
> >> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>> 
> >>> 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 à 10:49:35PM, Thomas Byskov Dalgaard a
> >> écrit :
> >>>> Hi Bastien!
> >>>> 
> >>>> I have tried to attach the two files.
> >>>> 
> >>>> Please let me know your findings here.
> >>>> 
> >>>> Thanks in advance
> >>>> 
> >>>> Best regards Thomas
> >>>> 
> >>>> 
> >>>>> Den 5. jan. 2022 kl. 22.18 skrev Bastien DUMONT
> >> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>>>> 
> >>>>> Sorry, I just tried with pandoc 2.16.2 and it worked as expected... Maybe
> >> you could share you exact input and output files restricted to this minimal
> >> example?
> >>>>> 
> >>>>> Le Wednesday 05 January 2022 à 08:49:54PM, Thomas Byskov Dalgaard a
> >> écrit :
> >>>>>> Hi Bastien!
> >>>>>> 
> >>>>>> Here is the result from 2.16.2 converted from Markdown to docx:
> >>>>>> 
> >>>>>> This is a paragraph. After it, a blank line will be inserted.
> >>>>>> 
> >>>>> This is the following paragraph.
> >>>>>> 
> >>>>>> I see a strange character there where the blank line should have ben
> >> inserted.
> >>>>>> 
> >>>>>> 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
> >> get 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?
> >>>>>> 
> >>>>>> Best regards Thomas
> >>>>>>> Den 5. jan. 2022 kl. 14.12 skrev Bastien DUMONT
> >> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>>>>>> 
> >>>>>>> I don't get any special character in DOCX, but I still use pandoc 2.14. If
> >> the exact code I wrote produces one in v. 2.16.2, this may be a bug.
> >>>>>>> 
> >>>>>>> Don't write the backslash between two blank lines if you want only
> >> one blank line: this indicates a paragraph containing a line break, so you will
> >> 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.
> >>>>>>> 
> >>>>>>> In what cases do you want to insert some blank space before a
> >> paragraph? It would probably be better achieved through styling.
> >>>>>>> 
> >>>>>>> Le Wednesday 05 January 2022 à 11:57:49AM, Thomas Byskov
> >> Dalgaard a écrit :
> >>>>>>>> Hi Bastien!
> >>>>>>>> 
> >>>>>>>> Thanks for your idea.
> >>>>>>>> 
> >>>>>>>> I am a little behind on HTML 5 specs, because I mostly work in
> >> Markdown.
> >>>>>>>> 
> >>>>>>>> The following worked:
> >>>>>>>> 
> >>>>>>>> ~~~
> >>>>>>>> This is the first paragraph. After this sentence there is inserted a
> >> blank line before the next paragraph.
> >>>>>>>> 
> >>>>>>>> \
> >>>>>>>> 
> >>>>>>>> Here starts the next paragraph.
> >>>>>>>> ~~~
> >>>>>>>> 
> >>>>>>>> I noticed though that this inserts a special character when I convert
> >> from Markdown to docx-files. It looks like the escaped linebreak does
> >> something unexpected.
> >>>>>>>> 
> >>>>>>>> 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?
> >>>>>>>> 
> >>>>>>>> Best regards Thomas
> >>>>>>>> 
> >>>>>>>>> Den 7. nov. 2021 kl. 11.40 skrev Bastien DUMONT
> >> <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>:
> >>>>>>>>> 
> >>>>>>>>> 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/3B3F5A70-0DF9-4D74-
> >> B8AC-0CDD03E46388%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/YdWZKXIbH6G7pBnQ%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/4FF46680-CC8E-40B1-
> >> 83B2-F9D6F7D219E4%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/YdYLI8gO7cfQ431K%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/144A1587-D0B9-46F4-
> >> 832C-6A2058F3E91F%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/Ydao3mhsl7uFAysg%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/EC9FF0CD-E797-4EDD-
> >> A326-55B53B6CA15E%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/f496f6d0b02746d6882a5459a50adf98%40unibe.ch.
> 
> -- 
> 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/2152E028-0767-4D0B-93DB-85FDF10F617B%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/Yd1nSHKyCuo6Ugod%40localhost.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-01-11 11:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-07 10:29 Inserting blank lines into a document using Markdown 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
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

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