public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Help when convert to html and odt after
Date: Tue, 26 Sep 2017 10:58:24 -0700	[thread overview]
Message-ID: <20170926175824.GA30272@protagoras> (raw)
In-Reply-To: <82fdd7f8-d9c0-48ee-b386-959ae529b6ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

I can't reproduce this either with pandoc dev or pandoc
1.19.2.1.

pandoc -o my.dot << EOF
Text line

<h2>Index</h2>

<!-- MDTOC maxdepth:6 firsth1:1 numbering:0 flatten:0 bullets:1
updateOnSave:0 -->

... (the index generated automatically using mdtoc)

<!-- /MDTOC -->
EOF

I get an ODT without any literal HTML.

There was a bug where raw HTML was passed literally to
ODT, but it was fixed in 2013.

Now, I suppose you've actually got some HTML where you
put "(the index generated automatically)".

Is it, by chance, indented by at least four spaces?  If so,
that could explain what we're seeing ... since pandoc would
parse an indented section as a code block rather than raw
HTML.


  parent reply	other threads:[~2017-09-26 17:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 15:40 CesarJ M
     [not found] ` <b9ec5527-9376-4057-bb3b-4d35aa05f27f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-09-25 15:53   ` John MacFarlane
     [not found]     ` <20170925155355.GC61612-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-09-26  7:46       ` CesarJ M
     [not found]         ` <82fdd7f8-d9c0-48ee-b386-959ae529b6ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-09-26 16:06           ` John MACFARLANE
     [not found]             ` <20170926160635.GH70046-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2017-09-26 17:01               ` CesarJ M
     [not found]                 ` <5cbd73d7-4603-41bf-a52a-2083b706b41f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-09-26 17:09                   ` CesarJ M
2017-09-26 17:10                   ` CesarJ M
2017-09-26 17:58           ` John MACFARLANE [this message]
2017-09-27 15:12             ` CesarJ M
2017-09-26  7:50       ` CesarJ M

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=20170926175824.GA30272@protagoras \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@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).