From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30715 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=27L=C3=A9na_Montenot=27_via_pandoc=2Ddiscuss?= Newsgroups: gmane.text.pandoc Subject: Re: Conversition TWiki > Markdown doesnt parse italics correctly Date: Thu, 9 Jun 2022 01:53:23 -0700 (PDT) Message-ID: <4e222f31-8ecc-42cf-b23d-4fef81500acfn@googlegroups.com> References: <93c42bf9-fdbd-42e8-a64b-5365044c369cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_264_1602551677.1654764803641" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25955"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX55S5XVQIRBBHKQ2KQMGQEW2TCPAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 09 10:53:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nzDuy-0006Y9-33 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Jun 2022 10:53:28 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id bj31-20020a056808199f00b0032e46cba3bbsf11539168oib.20 for ; Thu, 09 Jun 2022 01:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=GQj6JMdCf3g3ubfsbvzHKhGwLCUMCWISVpQ3okhIIJU=; b=ZZ+bpLl0zbQEJGcIdHgxxpj1N+BOREYPm8+dL4GLPFtDQB89icPt7cWWBROChZVl1I r27Ivke+wyPzJiqmTA8MANHwgchrNjlrmjOvotV6nzBVx4ldaBQF+oojaZp2c1lVl3c/ 9h7vCEx8gCAADZtRXi688ABylyh3NtHwS5fJXf0oL7SZEkq7OekGamUdogkhNikOmguF Dncid6trEkbVIEDCHpRLGlcTJQg4F0LjflB5NKwOvI8YGQv/RPDXRKTMWV22LwI66Fdb 3JM2ly+ROOz914Z6WNxlTemWjoyLz2fE1oE+Vq7QINDIQYEmfq0VDRAeG/Kc41kCYuIp Q+kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=GQj6JMdCf3g3ubfsbvzHKhGwLCUMCWISVpQ3okhIIJU=; b=A7szMxM45UxAIHiiJlFKO3Q0pbVCrNqvo5f3OMMDtL8rEShZ4JVCMQVkmWDiX2VIcO p/D7sRwtzoNTb/6ZV9sAfgSjfd1aOukxKy8U2oknZMAgjo7RN5/WOdHmGa8pZzcrRgPI FOScv+kWmq0LPHIy0/ei+sW2h6vJFfcCx4ub/qjWaPoFbclAwmymkBFerFFES8Bkuf1q 7ws1lx5INSYZaBCNXnWifadTps7cTAECct2kOCgqT1vuw3wJh981SqpUEjkSQP26Oug1 qnAxm38IGkX90ei8FJQVzA7TCtJHZNJIkWzC2KHKl7yXzvGGjh/bhLT7R7c35+HKThID sP/A== X-Gm-Message-State: AOAM533k7peKe7R7isjZtLEXLkzjxlp5+2I8CynM2+1de+HOBjEOJimw wXXatiHBBRO6QtXRlKxcZu4= X-Google-Smtp-Source: ABdhPJwYBVNsdWsR2x4T3YUSaNWjjlGtb9JyeUmpHGpIRJ+zN/JrCWs7Wj8wlLl393Aq+Hyc9FrlyA== X-Received: by 2002:a05:6808:1893:b0:32b:1b16:5d01 with SMTP id bi19-20020a056808189300b0032b1b165d01mr1080056oib.164.1654764807089; Thu, 09 Jun 2022 01:53:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:236b:b0:60b:ebf6:9598 with SMTP id r11-20020a056830236b00b0060bebf69598ls3079750oth.1.gmail; Thu, 09 Jun 2022 01:53:24 -0700 (PDT) X-Received: by 2002:a05:6830:4119:b0:60c:1200:db58 with SMTP id w25-20020a056830411900b0060c1200db58mr3944510ott.68.1654764804315; Thu, 09 Jun 2022 01:53:24 -0700 (PDT) In-Reply-To: X-Original-Sender: lena.montenot-Vsva30nNcww0NahUy/aNDA@public.gmane.org X-Original-From: =?UTF-8?Q?L=C3=A9na_Montenot?= 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:30715 Archived-At: ------=_Part_264_1602551677.1654764803641 Content-Type: multipart/alternative; boundary="----=_Part_265_1698729731.1654764803641" ------=_Part_265_1698729731.1654764803641 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm using Pandoc 2.5, and in the original file, the bold syntax is double= =20 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=20 > 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 bold= =20 >> 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=20 >>> ''italic'' (with double single quotes) is MediaWiki syntax. >>> >>> Using the proper input format for each syntax gives the expected result= s: >>> >>> % 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 al= so=20 >>> 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= =20 >>> you should specify mediawiki as input format. In case you have a mixtur= e of=20 >>> both the presence of double and triple single quotes is a pretty sure= =20 >>> 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,=20 >>>> >>>> I want to use Pandoc to export some wiki articles towards a new=20 >>>> platforms. However, whenever I'm converting a TWiki file to Markdown, = while=20 >>>> the bold sections are parsed correctly, the italics are being replaced= from=20 >>>> '' to \'\' which is not ideal to automate the process. >>>> >>>> Is there any fix available ? Thank you :) >>>> >>>> --=20 >>>> You received this message because you are subscribed to the Google=20 >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit=20 >>>> https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9366-436b-bc= f1-783e753da718n%40googlegroups.com=20 >>>> >>>> . >>>> >>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/93c42bf9-fdbd-42e8-a64b= -5365044c369cn%40googlegroups.com=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/4e222f31-8ecc-42cf-b23d-4fef81500acfn%40googlegroups.com. ------=_Part_265_1698729731.1654764803641 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm using Pandoc 2.5, and in the original file, the bold syntax is double u= nderscores (__ bold text __)

Le mercredi 8 juin 2022 =C3=A0 20:03:44 UTC+2, BP a =C3=A9crit=C2= =A0:
Which pandoc version are you using, and which syntax are you usin= g 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 bold = is also wrong too :/

Le mercredi 8 juin 2022 =C3=A0 14:37:37 UTC+2, BPJ= a =C3=A9crit=C2=A0:
<= div dir=3D"auto">
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 forma= t for each syntax gives the expected results:

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

% pandoc -f mediawiki -t native
'= 9;italic''
[ Para [ Emph [ Str "italic&= quot; ] ] ]

While mismat= ched input format=E2=80=94syntax does not work, which is also expected:

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

% pandoc -f mediawiki -t native
_italic_
[ Para [ Str "_italic_&q= uot; ] ]

It seems your w= iki 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 mediawiki file.

<= div dir=3D"ltr" class=3D"gmail_attr">Den ons 8 juni 2022 13:59'L=C3=A9n= a Montenot' via pandoc-discuss <pando= c-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
Hello,

I want to use Pandoc to export= some wiki articles towards a new platforms. However, whenever I'm conv= erting a TWiki file to Markdown, while the bold sections are parsed correct= ly, 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...@googlegr= oups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pando= c-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= ...@googlegroups.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://groups.google.com/d= /msgid/pandoc-discuss/4e222f31-8ecc-42cf-b23d-4fef81500acfn%40googlegroups.= com.
------=_Part_265_1698729731.1654764803641-- ------=_Part_264_1602551677.1654764803641--