From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18221 Path: news.gmane.org!.POSTED!not-for-mail From: CesarJ M Newsgroups: gmane.text.pandoc Subject: Re: Help when convert to html and odt after Date: Tue, 26 Sep 2017 00:46:30 -0700 (PDT) Message-ID: <82fdd7f8-d9c0-48ee-b386-959ae529b6ff@googlegroups.com> References: <20170925155355.GC61612@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9841_834166047.1506411990864" X-Trace: blaine.gmane.org 1506411998 10775 195.159.176.226 (26 Sep 2017 07:46:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2017 07:46:38 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQKDIFYYUHRBV4LVDHAKGQE2RZ4WAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 26 09:46:34 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f59.google.com ([209.85.218.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwkZa-000204-CH for gtp-pandoc-discuss@m.gmane.org; Tue, 26 Sep 2017 09:46:30 +0200 Original-Received: by mail-oi0-f59.google.com with SMTP id b184sf4357274oii.17 for ; Tue, 26 Sep 2017 00:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=3FZEx2ZrKYhz4zNIHuLfY2axSPLbsHT2nOJvnb3xUc4=; b=sI0wJTRynhhn7MfIlFLga6YIVVkYz9oUqV/Rub+kQXs5rjLH/2sWqr0h96mY/oejJd pa45eWi15f8oTw1rXmWeA43c9xThLUIBHz705r61r3yaUIzFJD4Y2n42L97ALmXz+dva zt4+nRaj1g8PsZxm2Yex2vdL0b+Ds0nHdhFwt1yzKd6UQGXK0pBE8LJILKuzK6dVEx7T q23qRg3Tq171x5UkYZ5yHQjFWB7ymGU5DXZr+P05ajecfhwFKhHxAEEjRg2xjZ+uXQ9w uT0+1aR5rJVrCXOvWQs2gtMOduXRlBAzE+gCKfNwat1DwwRg7Hnegfe5JBO06arcM3wC YfIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=3FZEx2ZrKYhz4zNIHuLfY2axSPLbsHT2nOJvnb3xUc4=; b=bN86rFm/BJyqYi3kRwS/VXccdbv3xq/6E6KecvohaW9+JctO8ERGTimTiGowwA9o4o 4xsUTlOD+ujK8cKgPg3N35/zdPZxJAibzOPa1n7fsytKSCaaBwKu1C6wS5piflLcugrI Ul8wg94WgZkqY4p2n5Js1bbl7XGeN6Kysa7Y8OsDSx0yLpdSQjhy01Q2orrXZoueQdxz lgBqEV4OuYRgJWjFM0uhJz49/2yYXdsEgbmDjl+ufHrShzLIE3DuREkI7qZx6mqK6LDI xN3gt6ck95+Q0piPaCLrJeRN1bvX8QVyQPBhJnXF5ptW44nvpYpIpSPbZhinb1Xg5VMC ZWFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=3FZEx2ZrKYhz4zNIHuLfY2axSPLbsHT2nOJvnb3xUc4=; b=P8kPv71h6bqXjxNmDjxZk5H9+UQfQCQHmGVMrqVv6XJeYD/n7lAer8dZ3R1pV+Ooye WIficZ6xIGjlasDG/McFRRaRWhynsEjs+9OobsvYoIEeE9Bn3zcWsRyuQrTPbsX5EkqS zqXVMB+zpNeOX9W3pkWGqscjWxhCHRGk1zDhLvEOHvzW4qpLm4+1PZNGFrxdiHdN0nY/ NVV0t1NWVwNQKwxxi6x9o8qFUDfLbIyz1o4M62t+S1FDs65NVpzifIbyEQHVzXycTQpQ l9CgbZeEq0HvH8uQTl32JV0xRQwmJXYP3QUa7pVLNbvIK6yKE9piOD+txqteAXDMMVRE UREA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHPjjUiw2kaMZuVS/EPRcdC/JOfG915e1iu0yG3diWA7Gu/BcIDpbeLN 8awXzjt/tYeI1GuCz5vrCVw= X-Google-Smtp-Source: AOwi7QCEPdM1GZf8nY8hEW77YJuWIPcH2S6XP2ZDQ32xJsKMUc/an+5oQtQ3nc4UYCX3cNEMz/Ny9g== X-Received: by 10.157.58.33 with SMTP id j30mr122030otc.14.1506411992243; Tue, 26 Sep 2017 00:46:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.84.33 with SMTP id j33ls591541oth.24.gmail; Tue, 26 Sep 2017 00:46:31 -0700 (PDT) X-Received: by 10.157.45.2 with SMTP id v2mr134100ota.22.1506411991425; Tue, 26 Sep 2017 00:46:31 -0700 (PDT) In-Reply-To: <20170925155355.GC61612-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> X-Original-Sender: cesarjorgemartinez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18221 Archived-At: ------=_Part_9841_834166047.1506411990864 Content-Type: multipart/alternative; boundary="----=_Part_9842_1933847963.1506411990864" ------=_Part_9842_1933847963.1506411990864 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My MD example is: Text line

Index

... (the index generated automatically using mdtoc) Then, when I convert to odt: - This text is inserted in conversion (I do not know what it's for): When I open the odt (LibreOffice): Show this as comment: (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=20 escribi=C3=B3: Are you saying that, when you convert from HTML to ODT, the=20 > HTML comments are appearing in the ODT?=20 > > Can you give a minimal example to reproduce?=20 > > Note that the ODT writer using the OpenDocument writer.=20 > And when I use that, HTML comments are not passed through in=20 > any way:=20 > > % pandoc -t opendocument -f html=20 > =20 > [warning] Skipped '' at input line 1 column 3=20 > > > > +++ CesarJ M [Sep 25 17 08:40 ]:=20 > > Hi,=20 > > I have a MD with Md Toc section. I'm using last nightly version of=20 > > pandoc=20 > > Then, when convert to html:=20 > > pandoc mydoc.md -f gfm --self-contained --standalone -t html -o=20 > > mydoc.html=20 > > Inside html is followinng code:=20 > > =20 > > And=20 > > =20 > > When after, I convert to odt by example, and open it, show the Odt=20 > with=20 > > comments, one for the script, and other for the MDTOC header.=20 > > Howto convert without these codes?=20 > > Regards=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > > Groups "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > > an email to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > > To post to this group, send email to=20 > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > > To view this discussion on the web visit=20 > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/b9ec5527-9376-4057-=20 > > bb3b-4d35aa05f27f%40googlegroups.com.=20 > > For more options, visit [4]https://groups.google.com/d/optout.=20 > >=20 > >References=20 > >=20 > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org = =20 > > 2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org =20 > > 3.=20 > https://groups.google.com/d/msgid/pandoc-discuss/b9ec5527-9376-4057-bb3b-= 4d35aa05f27f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=3Demail&utm_source=3Dfooter=20 > > 4. https://groups.google.com/d/optout=20 > > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail 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. ------=_Part_9842_1933847963.1506411990864 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My MD example is:

Text line

<h2>Index&= lt;/h2>

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

... (the index generated automatical= ly using mdtoc)

<!-- /MDTOC -->


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

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

An= d other comment near before Index title:
MDTOC maxdepth:6 firsth1:1 numb= ering:0 flatten:0 bullets:1 updateOnSave:0
(without author)
2017/09/2= 5 17:26


Regards





El lunes, 25 de septiembr= e de 2017, 17:54:11 (UTC+2), John MacFarlane escribi=C3=B3:

=
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 ]:
> =C2=A0 Hi,
> =C2=A0 I have a MD with Md Toc section. I'm using last nightly= version of
> =C2=A0 pandoc
> =C2=A0 Then, when convert to html:
> =C2=A0 pandoc mydoc.md -f gfm --= self-contained --standalone -t html -o
> =C2=A0 mydoc.html
> =C2=A0 Inside html is followinng code:
> =C2=A0 =C2=A0 <!--[if lt IE 9]>
> =C2=A0 =C2=A0 =C2=A0 <script
> =C2=A0 src=3D"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/= html5shiv-printsh
> =C2=A0 iv.min.js"></script>
> =C2=A0 =C2=A0 <![endif]-->
> =C2=A0 And
> =C2=A0 <!-- MDTOC maxdepth:6 firsth1:1 numbering:0 flatten:0 bu= llets:1
> =C2=A0 updateOnSave:0 -->
> =C2=A0 When after, I convert to odt by example, and open it, show = the Odt with
> =C2=A0 comments, one for the script, and other for the MDTOC heade= r.
> =C2=A0 Howto convert without these codes?
> =C2=A0 Regards
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/b9ec5527-9376-4057-<= /a>
> =C2=A0 bb3b-4d35aa05f27f%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/b9ec5527-9= 376-4057-bb3b-4d35aa05f27f@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_9842_1933847963.1506411990864-- ------=_Part_9841_834166047.1506411990864--