public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: <denis.maier-NSENcxR/0n0@public.gmane.org>
To: <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: AW: Inserting blank lines into a document using Markdown
Date: Tue, 11 Jan 2022 09:52:22 +0000	[thread overview]
Message-ID: <f496f6d0b02746d6882a5459a50adf98@unibe.ch> (raw)
In-Reply-To: <EC9FF0CD-E797-4EDD-A326-55B53B6CA15E-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@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.


  parent reply	other threads:[~2022-01-11  9:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-07 10:29 Thomas Byskov Dalgaard
     [not found] ` <A1998CCA-188A-4553-BF5C-5CFD5D44AADD-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2021-11-07 10:40   ` Bastien DUMONT
2021-11-07 15:51     ` Thomas Byskov Dalgaard
     [not found]       ` <18ED2596-53FC-44FF-A62B-4CF4ECFDAB84-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2021-11-07 22:50         ` Bastien DUMONT
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                           ` denis.maier-NSENcxR/0n0 [this message]
     [not found]                             ` <f496f6d0b02746d6882a5459a50adf98-NSENcxR/0n0@public.gmane.org>
2022-01-11 10:33                               ` Bastien DUMONT
2022-01-11 10:52                               ` Thomas Byskov Dalgaard
     [not found]                                 ` <2152E028-0767-4D0B-93DB-85FDF10F617B-AHfMSizzl90sTMJHDOTzqX9LOBIZ5rWg@public.gmane.org>
2022-01-11 11:17                                   ` Bastien DUMONT

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=f496f6d0b02746d6882a5459a50adf98@unibe.ch \
    --to=denis.maier-nsencxr/0n0@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

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

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