{"id":7766,"date":"2024-09-28T01:12:00","date_gmt":"2024-09-28T05:12:00","guid":{"rendered":"https:\/\/www.both.org\/?p=7766"},"modified":"2024-09-26T16:37:50","modified_gmt":"2024-09-26T20:37:50","slug":"effortlessly-transform-your-markdown-documents-to-accessible-formats-with-pandoc","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=7766","title":{"rendered":"Effortlessly Transform Your Markdown Documents to Accessible Formats with Pandoc"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"7766\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>I have been experimenting extensively with Ollama and other artificial intelligence tools, and the answers to my prompts are always rendered in Markdown. I have Marktext on my Linux computer and MacDown on my MacBook Air, so I can easily copy and paste the output into either of those editors and save it as a Markdown file. However, when I want to share those files with colleagues who are unfamiliar with Markdown, I need a way to convert those files into a format that&#8217;s easily accessible for them. My Markdown editors can only export the Markdown files as HTML or PDF.<\/p>\n\n\n\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">That problem is easily solved with&nbsp;<a href=\"https:\/\/pandoc.org\/index.html\" target=\"_blank\" rel=\"noopener\">Pandoc,<\/a>&nbsp;a great tool that anyone can install on Linux, MacOS, or Windows that easily converts Markdown into various formats.<\/span> Easily install Pandoc on Linux with the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo dnf install pandoc\nor \n$ sudo apt install pandoc<\/code><\/pre>\n\n\n\n<p>On MacOS, use Hombrew to easily install Pandoc by opening a terminal and entering the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ brew install pandoc<\/code><\/pre>\n\n\n\n<p>You can install Pandoc on Microsoft Windows using <a href=\"https:\/\/chocolatey.org\/\">Chocolatey<\/a> with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>choco install pandoc\n<\/code><\/pre>\n\n\n\n<p>Once the application is installed<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">, it works very well from the command line. The project maintains great\u00a0<a href=\"https:\/\/pandoc.org\/MANUAL.html\" target=\"_blank\" rel=\"noopener\">documentation<\/a>. I needed to convert a Markdown document to .docx so my Windows-using colleagues could easily read the output from the LLM I had been using. I used the documentation and the program&#8217;s<\/span> <strong>man<\/strong> page on my Linux system to enter the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ pandoc -o ProposedLease.docx -f markdown -t docx LeaseReview.md\n<\/code><\/pre>\n\n\n\n<p>The conversion was flawless and occurred in a second or two. Your experience may vary based on CPU, RAM, and the length of the document converted. The Markdown file of our lease review was converted to &#8220;ProposedLease.docx,&#8221; which I could easily share with my colleagues using Microsoft Word.<\/p>\n\n\n\n<p>If you are uncomfortable installing software on your computer or an unprivileged user in a corporate or educational setting, you can use&nbsp;Pandoc <a href=\"https:\/\/pandoc.org\/try\/\">online<\/a>. Pandooc is open source with a GPL v2&nbsp;<a href=\"https:\/\/github.com\/jgm\/pandoc\/blob\/main\/COPYRIGHT\">license<\/a>. For more information about Pandoc, consult their website and examine all of the options the program provides.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been experimenting extensively with Ollama and other artificial intelligence tools, and the answers to my prompts<\/p>\n","protected":false},"author":32,"featured_media":5771,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5],"tags":[582,583,581],"class_list":["post-7766","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-document-conversion","tag-markdown","tag-pandoc"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/7766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7766"}],"version-history":[{"count":5,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/7766\/revisions"}],"predecessor-version":[{"id":7775,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/7766\/revisions\/7775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/5771"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}