# CommonMark to/from anything

**URL:** <https://talk.commonmark.org/t/commonmark-to-from-anything/1194>\
**Category:** Implementation\
**Created:** [May 28, 2015, 5:55am UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194 "2015-05-28T05:55:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [May 28, 2015, 5:55am UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/1 "2015-05-28T05:55:52Z")

</div>

The newly released [pandoc 1.14](https://github.com/jgm/pandoc/releases/tag/1.14) now reads and writes CommonMark! (Use `--to commonmark` or `--from commonmark`).

So you can convert **from CommonMark** to several different variants of Markdown, reStructuredText, XHTML, HTML 5, LaTeX, ConTeXt, DocBook, OPML, OpenDocument, ODT, Word docx, RTF, MediaWiki, DokuWiki, Textile, groff man pages, plain text, Emacs Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign ICML, and beamer, slidy, dzslides, S5, or reveal.js slide shows.

You can also convert **to CommonMark** from reStructuredText, Textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, OPML, Emacs Org-Mode, Txt2Tags, Microsoft Word docx, EPUB, Haddock markup, or other Markdown variants.

Pandoc’s default `markdown` is still its own fairly full-featured variant. Making its core CommonMark-compliant is on the TODO list.

---

<div class="post-metadata">

**Author:** ![lu\_zero](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/lu_zero/32/557_2.png) [@lu\_zero](https://talk.commonmark.org/u/lu_zero)\
**Post date:** [May 28, 2015, 6:26pm UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/2 "2015-05-28T18:26:41Z")

</div>

The conversion to groff manpage uses specific extensions? (I’m interested since I’d like to convert a large corpus of texinfo and I’d like to keep the output as good or better)

---

<div class="post-metadata">

**Author:** ![Mike\_Ward](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/mike_ward/32/520_2.png) [@Mike\_Ward](https://talk.commonmark.org/u/Mike_Ward)\
**Post date:** [May 28, 2015, 9:59pm UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/3 "2015-05-28T21:59:20Z")

</div>

Is there a windows version? The current release page only has osx and Linux packages.

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [May 29, 2015, 4:05am UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/4 "2015-05-29T04:05:43Z")

</div>

+++ lu\_zero [May 28 15 18:36]:

> The conversion to groff manpage uses specific extensions? (I’m interested since I’d like to convert a large corpus of texinfo and I’d like to keep the output as good or better)

Just try it, and see how it does. Generally pandoc does well on the  
structure that is common to Markdown, but anything very texinfo-specific  
may get converted in a lossy way.

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [May 29, 2015, 4:05am UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/5 "2015-05-29T04:05:44Z")

</div>

+++ Mike\_Ward [May 28 15 22:09]:

> Is there a windows version? The current release page only has osx and Linux packages.

Yes, there is. I found a problem with the Windows build soon after  
release, so I pulled the msi, but I’ll have a new fixed version (1.14.0.1)  
out tonight, so check again in a little while.

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [May 29, 2015, 4:45am UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/6 "2015-05-29T04:45:29Z")

</div>

+++ jgm [May 29 15 04:15]:

> +++ Mike\_Ward [May 28 15 22:09]:
> 
> > Is there a windows version? The current release page only has osx and Linux packages.
> 
> Yes, there is. I found a problem with the Windows build soon after  
> release, so I pulled the msi, but I’ll have a new fixed version (1.14.0.1)  
> out tonight, so check again in a little while.

It’s there now:

> **[Release pandoc 1.14.0.1 · jgm/pandoc](https://github.com/jgm/pandoc/releases/tag/1.14.0.1)**
>
> Fixed problem with building of reference.docx and reference.odt when the embed\_data\_files flag is used. Instead of having a phase of the build where reference.docx and reference.odt are created fr...

---

<div class="post-metadata">

**Author:** ![Mike\_Ward](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/mike_ward/32/520_2.png) [@Mike\_Ward](https://talk.commonmark.org/u/Mike_Ward)\
**Post date:** [May 29, 2015, 1:07pm UTC](https://talk.commonmark.org/t/commonmark-to-from-anything/1194/7 "2015-05-29T13:07:24Z")

</div>

Downloaded. Thanks…
