From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30712 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: Wed, 8 Jun 2022 14:37:21 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fbbe6605e0eef769" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2248"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBDNQQKKQMGQEDE53YAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 08 14:37:38 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f61.google.com ([209.85.167.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nyuwL-0000NX-H3 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 08 Jun 2022 14:37:37 +0200 Original-Received: by mail-lf1-f61.google.com with SMTP id bt27-20020a056512261b00b004779fd292b1sf10199163lfb.4 for ; Wed, 08 Jun 2022 05:37:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654691857; cv=pass; d=google.com; s=arc-20160816; b=MRds/Zt718w+Q8c0gdyAAcvGp4lfrKiKfhk1sfrBNfy7TkH4SB/pjJICGE36kFDeab 7reXkxv/O7GVKNg+zmKtLfFpJDGKkyCNzOe76tCKvXIs9oecor/A5aiwBBflDwzXVPrA A1a65PfAEznjWSicXNKKYdItNUN1Qo2zmE0T58e+qfqsxk9uNijJii6KplgeeAPcLRVQ 2lLCACtXL2+n47bXJ3cwc9EFr3yHfr7MdwvtSO6puJbx985iWdxIWTCDvFezU0eVGyIa FspaNd53gbeP5LNNrfVVs81+Jc3oBbFKMvb92OZeP5YdJwokq9r9JWMAws5sUmLfFIZe jHOw== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=TT7C1X5wHv0g7w8NuD0F98BlKP0Pzwxm72J6Dj+IkCY=; b=Qb5Cach/UAKgyxIfqVWp9XJqiDN6hiceae3fXEy05Ulbyx/rMM/9kfNzTgSrkKOYE9 A3qrTbbJeHTLgdMlPRQlUNhm+imiOuvRjqHywaqpJEQEFmOKzhn5QdytBYflvloZcxzF bdRfScEQUmcZ3TUqPNcTi1BBgRj0/Z11oXj3Kxv9SRLwvrKILVntgFRPsQ42qF93KKv3 Fqw24/VYPUVeiOVbp2wNHMXvN/Pe+zKG720KIcR20TezvdD/eVoTb9L556+As+RdTKK7 0++5ytf7njT0dJ5756M7bnEHqoWTbvBR+mqf+BvxK6vQSLPTyagoDs4KPuqGT/e3oslj QB7w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.49 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=TT7C1X5wHv0g7w8NuD0F98BlKP0Pzwxm72J6Dj+IkCY=; b=qyckf0ZKuqSEsqBsj5Cv9t7xVJ6Yl1I7MORwg/cmcGJSz9RJrHP6oaVxo7GxmMhKdO uzyQG3xUAWfbLtfK0JK+X6rUH6T/qM4JfXQa7rnWX/CoYlYWNn6aLLC3R56s+PJflTUr OaBhW0RqHQoDNrcI/mZUUC7LIS5HrRDVf5ir3EaBjQL1zusLeCAVjHRNYPEMAbnNGKQs lNb3O0w64CrWQ/J0Qz76q1C9pKyDdnsEBiiYe5+Gk0kZz/3/zAx3TfXyjai5AU/1KnqK UO8rgksIAspmQSRtM7M9c++/8cFc+WtTMyzoJG4NTGfq4l6Vr/UZ1d9HFdnnIrqI12Jq RKyA== 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 :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=TT7C1X5wHv0g7w8NuD0F98BlKP0Pzwxm72J6Dj+IkCY=; b=r7u1z4dmYCR+4Vse6JgstRjoqOmNYaBYDqXZSRzivCTU3i0tHamb6J9M5/vBDtzHNv iakBS/S1eNE8bOaFWg9v/SlJ+fez2mPgm0cF2PqOxc+3Qr3+/Z+H4i9XVNHCFyi+Xxm3 QTynjQ+aljh/cxT/AYII9s7U0ZIme+lhqptqvMrYI9pdF3TuVZruTcRG/G3A6mUwNWSv YFVDsL5USTDYiXhnQCyMvQ3BnAFxMJnIMjKx4TaqQ+PWHwUDZatLXcVe+xL+KHBTfM0p IQN5UI3d38cLdbmVTG+yvHEq9uAgtERXKC9qNEwmFS16A3Lq09qimgTnRWoyzRA/wbcZ nuUg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531IB/5pDkOY1X7OEIUEvUBTIuPxnE2AwiAOmJSu2lSI+a0G5Oid AZ+HKMgXJlPVmOY/0n+Sf20= X-Google-Smtp-Source: ABdhPJyizHIqOnhHBHiulySfQFmGp8AzFtuUjrFHUM2Ilc9zQ4l7WYWVVEhP1ZJ1JFu4sV1SphqcyQ== X-Received: by 2002:a2e:b0fc:0:b0:255:6f92:f9d4 with SMTP id h28-20020a2eb0fc000000b002556f92f9d4mr19250562ljl.92.1654691857025; Wed, 08 Jun 2022 05:37:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:bc24:0:b0:256:c8db:bc69 with SMTP id b36-20020a2ebc24000000b00256c8dbbc69ls155214ljf.6.gmail; Wed, 08 Jun 2022 05:37:31 -0700 (PDT) X-Received: by 2002:a2e:818a:0:b0:255:8239:3b1b with SMTP id e10-20020a2e818a000000b0025582393b1bmr13758578ljg.470.1654691851810; Wed, 08 Jun 2022 05:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654691851; cv=none; d=google.com; s=arc-20160816; b=rAmr11DlHEq6kBvLQJU2Z0vDnAj2dU27Mm6rgB8p8wtIt3ouQJMeCd7pmKHXiReG/J oApxrfqB0/SRZgndNYdfgkVoMSpOHm+SLyz9p4/fgnCSPWo+Iok1/79I9uESaBHB+zhC 1wWU1TPOFlX08J7RCj+wVYBFltjZt7jrYFVZ7aL4PIFCTrD349d+FH/A9NNNyEMJJSGO ZJBml7GYXcj0v8f+P4401xvuUW3etZ65GqSDwvYGJoS9msmAYR6wkWWXdrzAnzD+Cvmv WJGbj+kRIXtxtvo85jpdfckM2NnSCoEKVuyO2Xnrvi4UwWoO27O7c2EVruYc/Dxxf47R H7Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=6qN0ofyTpNmzpc9NwQjjKIqGzWlR0hFHSy4XnrhnZQE=; b=a1MpmXX78HTq9HODalAYOKRzHN3TKQV9h29pMxYwEvS39qUP/7CnqU1EZgyZ6bZ3MA EQZPOVQBvtm5tOIDRzbP1CXzXxcdhibQGhcsEOfTTTudFmrzbsx35ZkWWBn4wZaFTUea MlptQMje/K81YhO8uIqTyJ2Od9lJjZFG38ZtxbXAuwVV4QKGgPQKZ9bpDmtAQjcgqK8v t/Il8puYcoGBKqfA14HBIWxImYkqD9pOmpSYP4bKUP+nshdZRt22bzrPD3U7ww6dYcEA oOZMaKiutLm0mF5kMCp56uaUlF/s09P/GtPMBfYiUDFdoCOFD0c6uMfjWonT+WL1vM1K mGgw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.49 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com. [209.85.208.49]) by gmr-mx.google.com with ESMTPS id bt11-20020a056512260b00b0047878a17143si784320lfb.8.2022.06.08.05.37.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 05:37:31 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.49 as permitted sender) client-ip=209.85.208.49; Original-Received: by mail-ed1-f49.google.com with SMTP id c2so26865048edf.5 for ; Wed, 08 Jun 2022 05:37:31 -0700 (PDT) X-Received: by 2002:a05:6402:4381:b0:42e:271e:b3ba with SMTP id o1-20020a056402438100b0042e271eb3bamr33720246edc.103.1654691850860; Wed, 08 Jun 2022 05:37:30 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.49 as permitted sender) smtp.mailfrom=melroch-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.io gmane.text.pandoc:30712 Archived-At: --000000000000fbbe6605e0eef769 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 also e= xpected: % 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 mixture 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-discuss-/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 replaced 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, 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/d525341c-9366-436b-bcf1-= 783e753da718n%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/CADAJKhCJRtNBGPZPf_b%2BCLEDg5r84g0-qJFu%2B%2BMcbRpm04LSTw%40= mail.gmail.com. --000000000000fbbe6605e0eef769 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 form= at for each syntax gives the expected results:

<= /div>
% pandoc -f twiki -t native
<= div dir=3D"auto">_italic_
[ Para [ Emph [ Str "= italic" ] ] ]

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

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

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

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

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 hav= e a mediawiki file.

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

I wan= t to use Pandoc to export some wiki articles towards a new platforms. Howev= er, whenever I'm converting a TWiki file to Markdown, while the bold se= ctions are parsed correctly, the italics are being replaced from '' to \'\' which is not ideal to automate the proc= ess.

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-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9= 366-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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://g= roups.google.com/d/msgid/pandoc-discuss/CADAJKhCJRtNBGPZPf_b%2BCLEDg5r84g0-= qJFu%2B%2BMcbRpm04LSTw%40mail.gmail.com.
--000000000000fbbe6605e0eef769--