public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'Léna Montenot' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Conversition TWiki > Markdown doesnt parse italics correctly
Date: Fri, 10 Jun 2022 00:07:29 -0700 (PDT)	[thread overview]
Message-ID: <97bf728d-62c3-4ac8-a7f3-16371dff00c1n@googlegroups.com> (raw)
In-Reply-To: <CADAJKhDjL6pzGbK44vmO8iMuvqLcd6tjJQPAuRri1ZOG0v==dg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 5154 bytes --]

I think it's more Tikiwiki format actually !

Le jeudi 9 juin 2022 à 19:00:09 UTC+2, BP a écrit :

> 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éna Montenot' via pandoc-discuss <
> pandoc-...-/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 à 20:03:44 UTC+2, BP a écrit :
>>
>>> Which pandoc version are you using, and which syntax are you using for 
>>> bold?
>>>
>>> Den ons 8 juni 2022 15:21'Léna 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 à 14:37:37 UTC+2, BPJ a écrit :
>>>>
>>>>> 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-...-/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-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-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-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-a64b-5365044c369cn%40googlegroups.com 
>>>> <https://groups.google.com/d/msgid/pandoc-discuss/93c42bf9-fdbd-42e8-a64b-5365044c369cn%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-discus...-/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 
>> <https://groups.google.com/d/msgid/pandoc-discuss/4e222f31-8ecc-42cf-b23d-4fef81500acfn%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/97bf728d-62c3-4ac8-a7f3-16371dff00c1n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 9115 bytes --]

  parent reply	other threads:[~2022-06-10  7:07 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
     [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 [this message]
     [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=97bf728d-62c3-4ac8-a7f3-16371dff00c1n@googlegroups.com \
    --to=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).