public function postFilter($html, $config, $context) {
        $regexp = '/~(\/?)embed( ?)([^~]+)?~/i';
        $replace = '<$1embed$2$3>';
        return preg_replace($regexp, $replace, $html);
    }