How to use MarkDown in a custom textarea field?
You can download a copy of PHP Markdown and use it to parse the textarea contents before you save it: if ( ! class_exists( ‘Markdown’ ) ) { require_once( plugin_dir_path(__FILE__) . ‘/markdown.php’ ); } $textarea_contents = Markdown::defaultTransform( $textarea_contents );