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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9366-436b-bcf1-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...@googlegroups.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...@googlegroups.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-/JYPxA39Uh5TLH3MbocFFw@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.