def run_pandoc_filter(filter_name, output_format, source_path, target_path):
    """
    Example:

        $ pandoc --filter pandocfilters/htmlfilter.py --write=html \
            --output docs/build/README.html README.md

    """
    filter_path = os.path.join(PANDOC_FILTER_DIR, filter_name)
    return run_pandoc(["--filter", filter_path, "--write=%s" % output_format,
                       "--output", target_path, source_path])
dataset/ETHPy150Open cjerdonek/open-rcv/openrcv_setup/utils.py/run_pandoc_filter/original