Created
January 3, 2022 13:17
-
-
Save iRynoh/662ba9be14252161df38c90d79bd6c99 to your computer and use it in GitHub Desktop.
Pandoc .docx to .mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$files = glob("*.docx"); | |
foreach ($files as $file) { | |
shell_exec('pandoc "'.$file.'" --wrap=none -t gfm-smart -o "'.str_replace('.docx','.md',$file).'"'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment