public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Conversition TWiki > Markdown doesnt parse italics correctly
Date: Wed, 8 Jun 2022 14:37:21 +0200	[thread overview]
Message-ID: <CADAJKhCJRtNBGPZPf_b+CLEDg5r84g0-qJFu++McbRpm04LSTw@mail.gmail.com> (raw)
In-Reply-To: <d525341c-9366-436b-bcf1-783e753da718n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2391 bytes --]

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—syntax 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_" ] ]

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éna 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
> <https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9366-436b-bcf1-783e753da718n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CADAJKhCJRtNBGPZPf_b%2BCLEDg5r84g0-qJFu%2B%2BMcbRpm04LSTw%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3948 bytes --]

  parent reply	other threads:[~2022-06-08 12:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08 11:58 'Léna Montenot' via pandoc-discuss
     [not found] ` <d525341c-9366-436b-bcf1-783e753da718n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-08 12:37   ` BPJ [this message]
     [not found]     ` <CADAJKhCJRtNBGPZPf_b+CLEDg5r84g0-qJFu++McbRpm04LSTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-08 13:20       ` 'Léna Montenot' via pandoc-discuss
     [not found]         ` <93c42bf9-fdbd-42e8-a64b-5365044c369cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-08 18:03           ` BPJ
     [not found]             ` <CADAJKhD9DVHm4AMCZiJ_emnFevp7=5BX_L8d_J=G1QDHYttvXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-09  8:53               ` 'Léna Montenot' via pandoc-discuss
     [not found]                 ` <4e222f31-8ecc-42cf-b23d-4fef81500acfn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-09 16:59                   ` BPJ
     [not found]                     ` <CADAJKhDjL6pzGbK44vmO8iMuvqLcd6tjJQPAuRri1ZOG0v==dg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-10  7:07                       ` 'Léna Montenot' via pandoc-discuss
     [not found]                         ` <97bf728d-62c3-4ac8-a7f3-16371dff00c1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-10  7:16                           ` Albert Krewinkel
     [not found]                             ` <87bkv1yoke.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-10  7:44                               ` 'Léna Montenot' via pandoc-discuss
     [not found]                                 ` <305c5dba-e891-4fb6-842f-15414c6187d4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-10  7:59                                   ` Albert Krewinkel
     [not found]                                     ` <90453a09-44ae-4d6f-ac04-036d0e2a9d94n@googlegroups.com>
     [not found]                                       ` <90453a09-44ae-4d6f-ac04-036d0e2a9d94n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-10  9:29                                         ` Message privé sur le sujet suivant : " Albert Krewinkel
     [not found]                                           ` <8735gczwpy.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-10  9:38                                             ` 'Léna Montenot' via pandoc-discuss

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=CADAJKhCJRtNBGPZPf_b+CLEDg5r84g0-qJFu++McbRpm04LSTw@mail.gmail.com \
    --to=bpj-j3h7gcxpsitlodktgw+v6w@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).