Pandoc is used inside Terminal. You can use Homebrew to manage and install command line apps including Pandoc.
Eventually we would want to copy as html from the editor and then paste that into Word etc, see this FR