public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: CesarJ M <cesarjorgemartinez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Help when convert to html and odt after
Date: Tue, 26 Sep 2017 00:46:30 -0700 (PDT)	[thread overview]
Message-ID: <82fdd7f8-d9c0-48ee-b386-959ae529b6ff@googlegroups.com> (raw)
In-Reply-To: <20170925155355.GC61612-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 3927 bytes --]

My MD example is:

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


Then, when I convert to odt:
- This text is inserted in conversion (I do not know what it's for):
  </style>
  <!--[if lt IE 9]>
    <script 
src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  <![endif]-->
</head>
<body>

When I open the odt (LibreOffice):
Show this as comment:
<!--[if lt IE 9]>
    <script 
src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  <![endif]-->
(without author)
2017/09/25 17:26

And other comment near before Index title:
MDTOC maxdepth:6 firsth1:1 numbering:0 flatten:0 bullets:1 updateOnSave:0
(without author)
2017/09/25 17:26


Regards





El lunes, 25 de septiembre de 2017, 17:54:11 (UTC+2), John MacFarlane 
escribió:

Are you saying that, when you convert from HTML to ODT, the 
> HTML comments are appearing in the ODT? 
>
> Can you give a minimal example to reproduce? 
>
> Note that the ODT writer using the OpenDocument writer. 
> And when I use that, HTML comments are not passed through in 
> any way: 
>
> % pandoc -t opendocument -f html 
> <!-- hi --> 
> [warning] Skipped '<!-- hi -->' at input line 1 column 3 
>
>
>
> +++ CesarJ M [Sep 25 17 08:40 ]: 
> >   Hi, 
> >   I have a MD with Md Toc section. I'm using last nightly version of 
> >   pandoc 
> >   Then, when convert to html: 
> >   pandoc mydoc.md -f gfm --self-contained --standalone -t html -o 
> >   mydoc.html 
> >   Inside html is followinng code: 
> >     <!--[if lt IE 9]> 
> >       <script 
> >   src="//
> cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printsh 
> >   iv.min.js"></script> 
> >     <![endif]--> 
> >   And 
> >   <!-- MDTOC maxdepth:6 firsth1:1 numbering:0 flatten:0 bullets:1 
> >   updateOnSave:0 --> 
> >   When after, I convert to odt by example, and open it, show the Odt 
> with 
> >   comments, one for the script, and other for the MDTOC header. 
> >   Howto convert without these codes? 
> >   Regards 
> > 
> >   -- 
> >   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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To post to this group, send email to 
> >   [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To view this discussion on the web visit 
> >   [3]
> https://groups.google.com/d/msgid/pandoc-discuss/b9ec5527-9376-4057- 
> >   bb3b-4d35aa05f27f%40googlegroups.com. 
> >   For more options, visit [4]https://groups.google.com/d/optout. 
> > 
> >References 
> > 
> >   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   3. 
> https://groups.google.com/d/msgid/pandoc-discuss/b9ec5527-9376-4057-bb3b-4d35aa05f27f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >   4. https://groups.google.com/d/optout 
>
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/82fdd7f8-d9c0-48ee-b386-959ae529b6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 8557 bytes --]

  parent reply	other threads:[~2017-09-26  7:46 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 [this message]
     [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
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=82fdd7f8-d9c0-48ee-b386-959ae529b6ff@googlegroups.com \
    --to=cesarjorgemartinez-re5jqeeqqe8avxtiumwx3w@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).