Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters #24

Open
twsh opened this issue Nov 21, 2014 · 2 comments
Open

Filters #24

twsh opened this issue Nov 21, 2014 · 2 comments

Comments

@twsh
Copy link

twsh commented Nov 21, 2014

Unless I've missed it, there's no way to use a Pandoc filter with Pandown, like having --filter=foo.py on the command line. I would quite like to be able to.

@MFykoopS
Copy link

I see that this issue is quite old but I just found a solution so I thought I'd post it.

I just found out that this is indeed possible (although it's not documented). You can just add a "filter": "foo.py" in the Pandown.sublime-settings (or the project settings file). You can also use a list. I use a the zotxt filter together with citeproc to convert Zotero citations and searched for hours for a solution to use it. Then I saw in the pandownBuildCommand.py file that the build command iterates over everything in the command arguments section and appends it to the pandoc command. My Pandown.sublime-settings file now looks like:

{
    "preprocess_critic": true,
    "pandoc_arguments":
    {
        "command_arguments":
        {
            "csl": "/home/mfykoops/texts/styles/apa",
            "filter":
            [
                "pandoc-zotxt",
                "pandoc-citeproc"
            ],
        }
    }
}

Long story short: The functionality is there but it's undocumented. Maybe an explanation of how the build command just adds anything under command line (and not just the options explained there) could be added to the commentary in the default config?

@twsh
Copy link
Author

twsh commented Jun 25, 2015

Thank-you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants