Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

This is a PHP port of the python module for writing pandoc filters found at https://github.com/jgm/pandocfilters

Notifications You must be signed in to change notification settings

kalkin/pandocfilters-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP pandocfilters

This is a PHP port of the python module for writing pandoc filters found at jgm/pandocfilters

The purpose is simply to make it easier to write filters in PHP.

#!/usr/bin/env php
<?php

require_once __DIR__ . '/../pandocfilters.php';

Pandoc_Filter::toJSONFilter(function ($type, $value, $format, $meta) {
    if ('Str' == $type) {
        // use mb_convert_case instead of ucwords so filter works with unicode
        return mb_convert_case($value, MB_CASE_TITLE, "UTF-8");
    }
});

This is a fork of Vinai/pandocfilters-php packaged as a composer package

Thanks to John MacFarlane for pandoc.

About

This is a PHP port of the python module for writing pandoc filters found at https://github.com/jgm/pandocfilters

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%