Aller au contenu

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

De Marmits Wiki
Aucun résumé des modifications
Aucun résumé des modifications
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 ===
<syntaxhighlight lang="bash" line copy>
<syntaxhighlight lang="bash" line copy>
pandoc -f markdown -t mediawiki -o fichier.wiki fichier.md
pandoc -f markdown -t mediawiki -o fichier.wiki fichier.md
</syntaxhighlight>
</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:Linux]] [[Catégorie:Debian]]

Version du 17 mars 2025 à 20:09

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

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

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