Mlmmj mailing-list setup: Difference between revisions
(Created page with "{{Article |MainNavigation=No }}") |
No edit summary |
||
Line 2: | Line 2: | ||
|MainNavigation=No | |MainNavigation=No | ||
}} | }} | ||
<code>*-smart</code> outputs better typography (eg straight quotes to curly quotes, etc) | |||
<span id="convert-.docx-to-.md-without-column-widthpagination"></span> | |||
== convert .docx to .md without column-width/pagination == | |||
<code>pandoc -s input.docx -t markdown-smart -o output.md --wrap=none</code> | |||
<span id="convert-all-.docx-files-in-current-folder"></span> | |||
== convert all .docx files in current folder == | |||
<code>find . -name "*.docx" -exec pandoc -s {} -t markdown-smart -o {}.md --wrap=none \;</code> | |||
<span id="convert-markdown-to-mediawiki-to-clipboard"></span> | |||
== convert markdown to mediawiki to clipboard == | |||
<code>pandoc -s file.txt -t mediawiki | pbcopy</code> | |||
<span id="convert-all-doc-files-in-current-folder-to-docx"></span> | |||
== convert all doc files in current folder to docx == | |||
<code>textutil -convert docx *.doc</code> |
Revision as of 13:25, 17 February 2023
*-smart
outputs better typography (eg straight quotes to curly quotes, etc)
convert .docx to .md without column-width/pagination
pandoc -s input.docx -t markdown-smart -o output.md --wrap=none
convert all .docx files in current folder
find . -name "*.docx" -exec pandoc -s {} -t markdown-smart -o {}.md --wrap=none \;
convert markdown to mediawiki to clipboard
pandoc -s file.txt -t mediawiki | pbcopy
convert all doc files in current folder to docx
textutil -convert docx *.doc