JetDevOps

Définition :

pandoc.org manual

Possibilités de Pandoc :

Contenu :

Ici le fichier rapport.md est le fichier markdown que je souhaite convertir en fichier Word. Pour mon mémoire en rapport_memoire_m2.docx.

Seule les 3 premières commandes sont nécessaires pour convertir un fichier markdown en fichier Word.

pandoc -o rapport_memoire_m2.docx -f markdown -t docx rapport.md
pandoc -o rapport_memoire_m2.docx -f markdown -t docx rapport.md --from=markdown+native_numbering
 pandoc -o rapport_memoire_m2.docx -f markdown -t docx rapport.md --table-of-contents --toc --no-check-certificate --from=markdown+backtick_code_blocks --number-sections

pandoc -o rapport_memoire_m2.docx -f markdown -t docx rapport.md --sandboxfalse

# md_document
# word_document

--table-of-contents --toc  --no-check-certificate


--number-sections

--citeproc


--listings
--number-sections


--reference-links


pandoc myReport.md --from markdown+pipe_tables --to latex -o myReport.pdf


--from=markdown+backtick_code_blocks

pandoc -o rapport_memoire_m2.docx -f markdown -t docx rapport.md --table-of-contents --toc --no-check-certificate --from=markdown+backtick_code_blocks --number-sections

Précisions à l’intérieur du fichier markdown : rapport.md

---
title: "RAPPORT DE M2"
author: Amine ABDOUL-AZID
date: August 15, 2022
lang: fr-FR
sandbox: false
table-of-contents: true
output: 
    variant: 
        empty_paragraphs
        native_numbering
        citations
        fancy_lists
        fenced_code_blocks
        backtick_code_blocks
        implicit_figures
---