From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30716 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Conversition TWiki > Markdown doesnt parse italics correctly Date: Thu, 9 Jun 2022 18:59:54 +0200 Message-ID: References: <93c42bf9-fdbd-42e8-a64b-5365044c369cn@googlegroups.com> <4e222f31-8ecc-42cf-b23d-4fef81500acfn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d6b89c05e106c003" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33576"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBFWORCKQMGQEOOP3XWA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 09 19:00:10 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f59.google.com ([209.85.218.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nzLVx-0008bZ-U0 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Jun 2022 19:00:09 +0200 Original-Received: by mail-ej1-f59.google.com with SMTP id rs21-20020a170907037500b0070c40030f0asf9248490ejb.20 for ; Thu, 09 Jun 2022 10:00:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654794009; cv=pass; d=google.com; s=arc-20160816; b=Z5bGfAlYdebg5SNO0VGt6yr+2xBYCqxo5s18/8o+jiljnHgKtWaJb/xIsclGw7sr5w 6tCT95fPPJlGhtEL9vh0NpwHos7fdRF2t56hifF04fkohvm9r0xGhbahW5teUd+ri7t2 pRRdu0OEt/U0fxR5FT7xUxPqRBa8iQYXFIzWZ7LkfUKSynjoHP8NzET//ZroZY8a8Rzs JKQPm8DfZqYZJRs8XNKa8ypL0nLpq8e+0jnQza/wq9oBY+mgNdSVzCl4qZPQlxivoHfC gR3rdyXpBYbaDJRIfrttEnq9oYMhucVgmAIogyI9qjpV5HF9zj/lsNJLWKEkZ+zn83Xh Y6tA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=1aSR0RapfeT9Gk0PR1bUuaHsCrf1uGDVbuSGdXO0bFI=; b=E0BpNOoMvH1QT9c9PQACfgDNy+KoHwOfjLvg8aaFsQTf2wasI/XeINeNZU7gSBL4SQ j45BPe1wEVcvmLWWOZ3DXXDebamL1vGLIFDI9UEuF4dN44R3430IbnXw+fF/UmkC3yyW 3v9ovsfMJkk4DNID1xuzMW45OU6pe8KRJCIb9+KaDTX+mVVsw94u77nUKdyMbcQfMH4u OkZi39RcnR13L/Vxtm+zpyMRy/rq/PSdQByuRGt5Cg8cMdMFyIUSMeJUomqqbaOCmuZh jH1jorShSBtEpq6JFgTruqiwv6Sx+73hKo9yHQ/A0maEG2zfof2VWTOBXsk3hkkhJZ7Q pPGw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pPz6drUZ; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::530 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=1aSR0RapfeT9Gk0PR1bUuaHsCrf1uGDVbuSGdXO0bFI=; b=MjQQEkgkTIUYrAz7PULoUUp8MHAtLauXbLf3M8VRxdP1Ye3oazHqZTX0xCXBq0vYLd L3lJw3nEnpl7Q9l5xV3LTpAIssWTI2IDblvraaZBhLqs9KJfN+jlZLn87mFuNFNAO2ao Wf+6WLsnvNzuVDMTlQJxBne/fLRr5VLaIjkd/QO3zONBZThojceTagaJFPft34gjvimU MWy8w7ZgquFeB3RcyYeaRhAHTQFlYrjbOStvnsKM4LYPzMm3vaQ1fMXQEq3erUqXMSop 9O5Niu12liz3wsbYmntozDXYvRRA3uU9SiKWj/cixUnofwiu9nqQmoqjoPkV1t/CqWP+ m/uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1aSR0RapfeT9Gk0PR1bUuaHsCrf1uGDVbuSGdXO0bFI=; b=WmlzE1qXz43EdXgOQ07Ms6D2eQBNc20Eb3URIbuNBSneBHGh+wz+xPjKOJ+OGpBsOD zTnA93mHFdA2bYMcbAyDWPsfsXKWiOGMc4RuSCXbZTiDPITimjwpWCsvAZwmrxouth85 ZcHFEPPeMz2D3821G17BsWzjDLiaxgcjoJxFahiQu5jTcBtDu03Ue3/kTfnvuilgxwyy 0XHm3zWJNhRrvqAcd9DHKi9DkMwgIyAIRtTjQ+lhMLai03dano4jcTFg+qY7+ECh8wij xPtotCeXodRDms2ZrnFYplwuX4B6Wby0utJsVHjOOw1nM/mgTeWLJTTwjmsoaxiCpSPe v0DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1aSR0RapfeT9Gk0PR1bUuaHsCrf1uGDVbuSGdXO0bFI=; b=e5B3qiiAmHnTRvc24+VNrP28GipjsDdskGiuDe266PFgQuhQY+4bIH5fc4DQyxEm5T 0WFJLoznI8LwkObMMkI/Sb35EnnigBcF6H1RAY7Sd84UlWdGJsu0yNNGMNbTMSGk1ESj ICL7qCJTuNE5CEH/Ikxh9tL0uMlRjOVoD3P/vDKJkPOz963fH2kF3d+aAIGLXjpYkHDA gEjhBLDZGR12b38Fh9YWX1UJNf1n6yPqK+zjakRTj0T3Rz7ZGAjlLOxeb0L7PHOP0qB1 UBc6qIZODO1U4B7jZjLnWbn/sXSNelwPzU5fgHzPKvTE14vN6ciNlPYgBD7gW7GzzO+G h34g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533zrju/UbJhvbktILZ9aUkznm1g5X+0fcJ+5wz/T0ce5ULhf5Nb XUG3MmyYwy/OxvEe5Fl8WN4= X-Google-Smtp-Source: ABdhPJxz/2ghiD7yL8JuWEW8Rsd1Ocahmsfk3HvT677nnh8WEYcCKsWPpdzt0IWXOK+fuhaFM8pqFQ== X-Received: by 2002:a05:6402:34c2:b0:42f:79c0:334b with SMTP id w2-20020a05640234c200b0042f79c0334bmr37471138edc.88.1654794009539; Thu, 09 Jun 2022 10:00:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:709:b0:431:3a5e:75b3 with SMTP id w9-20020a056402070900b004313a5e75b3ls2698880edx.1.gmail; Thu, 09 Jun 2022 10:00:05 -0700 (PDT) X-Received: by 2002:a50:eb91:0:b0:42d:c1d8:616a with SMTP id y17-20020a50eb91000000b0042dc1d8616amr47009065edr.219.1654794005533; Thu, 09 Jun 2022 10:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654794005; cv=none; d=google.com; s=arc-20160816; b=Y14oWPRm34RIFlSDHwscpJXoAR9g+0Se6Gm3bLYqG03KZsPs2wIyQxOCxwA5GBUrFI c7xVRoU0BEiN47H0bnfbl8VUyldwaKulirLJ1pouLrtXCrCbXvdwdkw9k0+GV7pOP3Qa LH0LG03lCF0LIpj+vx10Lcp/LdRbY5K1Bnprk0hWjj6QK6wzm7hQYafQVwYZJ/8YykyQ X7rYws/gxc8kv7aEd/3Ks9Wvc8Q9XozQ9WSE2EeP7mtcrrXuYd+zpdVuVXjIUc+lRclC rIKCYZNOzOKIHSp0zjU9SaLtO3SspePHzT/Y6IJAuLk3A8bsfxoZyv4d6I4BHo/SyJJg zpXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=V162BemsP75doUHNCR7UafBAhU/88p/m3RTQPrib/8I=; b=MHelq4PIJT19/1/WmlGSwG6EeiWuG9INGhHF4TEspsJ8O3qhVlMxwC9juIitYDuGls je7XZjThBFRq+ysR/2VcQrINUpGa5yHJw9r5qGZUUhat+FacDcs68xfKdEScSLfN9eJR Il9XrHTADHJKKjFF+OL3CiGtwmFTjWntg9Jy8+FWTNp5D2uabt/5+L4cmCHTAJ+eIKcj 7ovCgCxZXCxUVBMJxaoMR7j1wY/i9caapJafEobWfxpCLw9jhU+pQQOg7vZ8RfonLtTf 1wMHhodg6t3qFb6+qqQLuJGWCVTnxabywRUC8fsFeBjTNB5GX5jTh60RwIXNyHYYebtW NzVw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pPz6drUZ; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::530 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com. [2a00:1450:4864:20::530]) by gmr-mx.google.com with ESMTPS id v9-20020a1709061dc900b006fefa121de4si762701ejh.1.2022.06.09.10.00.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jun 2022 10:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::530 as permitted sender) client-ip=2a00:1450:4864:20::530; Original-Received: by mail-ed1-x530.google.com with SMTP id 25so31747426edw.8 for ; Thu, 09 Jun 2022 10:00:05 -0700 (PDT) X-Received: by 2002:a05:6402:26c1:b0:42e:203d:ee8c with SMTP id x1-20020a05640226c100b0042e203dee8cmr41797278edd.227.1654794004902; Thu, 09 Jun 2022 10:00:04 -0700 (PDT) In-Reply-To: <4e222f31-8ecc-42cf-b23d-4fef81500acfn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pPz6drUZ; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::530 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:30716 Archived-At: --000000000000d6b89c05e106c003 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That's quite an old version of Pandoc. You might want to upgrade. Are you really sure about the syntax/format of your input files? As far as I know Twiki uses `*bold*` and `_italic_` (and mediawiki uses `'''bold'''` and `''italic''`). Your files seem to be in some other syntax. Den tors 9 juni 2022 10:54'L=C3=A9na Montenot' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > I'm using Pandoc 2.5, and in the original file, the bold syntax is double > underscores (__ bold text __) > > Le mercredi 8 juin 2022 =C3=A0 20:03:44 UTC+2, BP a =C3=A9crit : > >> Which pandoc version are you using, and which syntax are you using for >> bold? >> >> Den ons 8 juni 2022 15:21'L=C3=A9na Montenot' via pandoc-discuss < >> pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: >> >>> Hello ! >>> >>> Unfortunaly, using the following command : >>> >>> pandoc -f mediawiki -t markdown -o file_output.md file_input >>> >>> It parses some of the italic, but most are still parsed and now the bol= d >>> is also wrong too :/ >>> >>> Le mercredi 8 juin 2022 =C3=A0 14:37:37 UTC+2, BPJ a =C3=A9crit : >>> >>>> Do you mean TWiki or MediaWiki? >>>> If I am not mistaken the TWiki syntax for italics is _italic_ while >>>> ''italic'' (with double single quotes) is MediaWiki syntax. >>>> >>>> Using the proper input format for each syntax gives the expected >>>> results: >>>> >>>> % pandoc -f twiki -t native >>>> _italic_ >>>> [ Para [ Emph [ Str "italic" ] ] ] >>>> >>>> % pandoc -f mediawiki -t native >>>> ''italic'' >>>> [ Para [ Emph [ Str "italic" ] ] ] >>>> >>>> While mismatched input format=E2=80=94syntax does not work, which is a= lso >>>> expected: >>>> >>>> % pandoc -f twiki -t native >>>> ''italic'" >>>> [ Para [ Str "''italic'\"" ] ] >>>> >>>> % pandoc -f mediawiki -t native >>>> _italic_ >>>> [ Para [ Str "_italic_" ] ] >>>> >>>> It seems your wiki files are mediawiki instead of twiki, in which case >>>> you should specify mediawiki as input format. In case you have a mixtu= re of >>>> both the presence of double and triple single quotes is a pretty sure >>>> indicator that you have a mediawiki file. >>>> >>>> Den ons 8 juni 2022 13:59'L=C3=A9na Montenot' via pandoc-discuss < >>>> pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: >>>> >>>>> Hello, >>>>> >>>>> I want to use Pandoc to export some wiki articles towards a new >>>>> platforms. However, whenever I'm converting a TWiki file to Markdown,= while >>>>> the bold sections are parsed correctly, the italics are being replace= d from >>>>> '' to \'\' which is not ideal to automate the process. >>>>> >>>>> Is there any fix available ? Thank you :) >>>>> >>>>> -- >>>>> 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, sen= d >>>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9366-436b-b= cf1-783e753da718n%40googlegroups.com >>>>> >>>>> . >>>>> >>>> -- >>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/93c42bf9-fdbd-42e8-a64= b-5365044c369cn%40googlegroups.com >>> >>> . >>> >> -- > 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/4e222f31-8ecc-42cf-b23d-= 4fef81500acfn%40googlegroups.com > > . > --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhDjL6pzGbK44vmO8iMuvqLcd6tjJQPAuRri1ZOG0v%3D%3Ddg%40ma= il.gmail.com. --000000000000d6b89c05e106c003 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's quite an old version of Pandoc. You might want= to upgrade.

Are you really su= re about the syntax/format of your input files? As far as I know Twiki uses= `*bold*` and `_italic_` (and mediawiki uses `'''bold''= '` and `''italic''`). Your files seem to be in some oth= er syntax.

Den tors 9 juni 2022 10:54'L=C3=A9na Montenot' via = pandoc-discuss <pando= c-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
I'm using Pandoc 2.5, and in the original file, the bold syntax = is double underscores (__ bold text __)

Le mercredi 8 juin 2022 =C3=A0 20:03:44 UTC+2, BP a =C3=A9c= rit=C2=A0:
Which pandoc version are you using, and which syntax are you using f= or bold?

Den ons 8 juni 2022 15:21'L=C3= =A9na Montenot' via pandoc-discuss <p= andoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
Hello !

Unfortunaly, using the following command :

= pandoc -f mediawiki -t markdown -o = file_output.md file_input

It parses som= e of the italic, but most are still parsed and now the bold is also wrong t= oo :/

Le mercredi 8 juin 2022 =C3=A0 14:37:37 UTC+2, BPJ a =C3=A9crit= =C2=A0:
Do you mean TWiki or MediaWiki?
If I am not= mistaken the TWiki syntax for italics is _italic_ while ''italic&#= 39;' (with double single quotes) is MediaWiki syntax.

Using the proper input format for each sy= ntax gives the expected results:

% pandoc -f twiki -t native
_italic_
[ Para [ Emph [ Str "italic" = ] ] ]

= % pandoc -f mediawiki -t native
''italic'= ;'
[ Para [ Emph [ Str "italic" ] ] ]<= /div>

While mismatched input f= ormat=E2=80=94syntax does not work, which is also expected:

% pandoc -f twiki -t native
''italic'"
[ Para [ S= tr "''italic'\"" ] ]

=
% pandoc -f mediawiki -t native
_italic_
[ Para [ Str "_italic_" ] ]

It seems your wiki files = are mediawiki instead of twiki, in which case you should specify mediawiki = as input format. In case you have a mixture of both the presence of double = and triple single quotes is a pretty sure indicator that you have a mediawi= ki file.

Den ons 8 juni 2022 13:59'L=C3=A9na Montenot= ' via pandoc-discuss <pand= oc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
Hello,

I want to use Pandoc to expor= t some wiki articles towards a new platforms. However, whenever I'm con= verting a TWiki file to Markdown, while the bold sections are parsed correc= tly, the italics are being replaced from '' to \'\&= #39; which is not ideal to automate the process.

Is there any fix available ? Thank you :)

--
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 pandoc-discus.= ..@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/d525341c-9366-436b-bcf1-783e753da718n%40googlegroups.com= .

--
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 pandoc-discus...@googlegr= oups.com.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4e222f31-8= ecc-42cf-b23d-4fef81500acfn%40googlegroups.com.

--
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 view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhDjL6pzGbK44vmO8iMuvqLcd6tjJQPA= uRri1ZOG0v%3D%3Ddg%40mail.gmail.com.
--000000000000d6b89c05e106c003--