Aller au contenu

« Convertir Markdown en wikitexte » : différence entre les versions

De Marmits Wiki
Aucun résumé des modifications
 
(4 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
== Installation ==  
== Pandoc ==
Un outil de conversion de documents polyvalent qui peut convertir Markdown en de nombreux formats, y compris le wikitexte.
=== Installation ===  
<syntaxhighlight lang="bash" line copy>
<syntaxhighlight lang="bash" line copy>
sudo apt install pandoc
sudo apt install pandoc
</syntaxhighlight>
</syntaxhighlight>


Utilisation:
=== Utilisation ===
==== wiki => md ====
<syntaxhighlight lang="bash" line copy>
<syntaxhighlight lang="bash" line copy>
pandoc -f markdown -t mediawiki -o fichier.wiki fichier.md
pandoc -f mediawiki -t markdown file.wiki -o file.md  
</syntaxhighlight>
</syntaxhighlight>
==== md => wiki ====
<syntaxhighlight lang="bash" line copy>
pandoc -f markdown -t mediawiki file.md -o file.wiki
</syntaxhighlight>
== md2wiki ==
Un outil en ligne de commande spécifique pour convertir Markdown en wikitexte.
=== Installation ===
<syntaxhighlight lang="bash" line copy>
npm install -g md2wiki
</syntaxhighlight>
===Utilisation ===
<syntaxhighlight lang="bash" line copy>
md2wiki input.md > output.wiki
</syntaxhighlight>


[[Catégorie:Tools]] [[Catégorie:Linux]] [[Catégorie:Debian]]
[[Catégorie:Tools]] [[Catégorie: Terminal Tools]] [[Catégorie:Linux]] [[Catégorie:Debian]] [[Catégorie:Softz]]

Dernière version du 5 janvier 2026 à 14:23

Pandoc

Un outil de conversion de documents polyvalent qui peut convertir Markdown en de nombreux formats, y compris le wikitexte.

Installation

sudo apt install pandoc

Utilisation

wiki => md

pandoc -f mediawiki -t markdown file.wiki -o file.md

md => wiki

pandoc -f markdown -t mediawiki file.md -o file.wiki

md2wiki

Un outil en ligne de commande spécifique pour convertir Markdown en wikitexte.

Installation

npm install -g md2wiki

Utilisation

md2wiki input.md > output.wiki