phyllisstein / Pandown

A powerful, versatile, highly Subliminal Pandoc build wrapper for ST2/3
64 stars 12 forks source link

How to change the output type? #21

Closed timothyjlaurent closed 8 years ago

timothyjlaurent commented 10 years ago

I know I have successfully changed the output format in the past to 'mediawiki' unfortunately, I can't remember how I did it and the documentation is a bit obtuse to me.

Could we for posterity explain how one would change the output of Pandown from html to mediawiki?

Thanks, for any help

phyllisstein commented 10 years ago

Hey Timothy! Apologies for the abstruse docs. What you'll want to do is bring up the Command Palette and search for "Build: Pandown: MediaWiki Markup" (with fuzzy search, something like "pa mewi" will do it as well). That'll run the build from Markdown to MediaWiki once.

The only way to change the default, at least till Pandown gets its long-overdue rewrite, is to manually clone or extract the repo and change Pandown Markdown.sublime-build so that the very beginning of the file looks like this:

{
    "selector": "text.html.markdown",
    "target": "pandown_build",
    "pandoc_from": "markdown",
    "pandoc_to": ["mediawiki", ".txt"]

    "variants": [
        // ...etc.
    ]
}

I'll keep this ticket open and be sure to drop a comment here if and when I finally rewrite the code-base and find a workaround for the static nature of the build definitions.