Markdown-enhanced ACF textarea.
Works with repeaters and even frontend forms using Advanced Forms.
- Inscryb/inscryb-markdown-editor for the editor
- cebe/markdown to render the output
- PHP >=5.4
- Composer
- ACF v5
composer require nichestudio/acf-markdown
Override the Inscryb editor options:
acf.add_filter( 'niche_markdown/inscrybmde_args', function ( args, field ) {
if ( field.o.id === 'field_xxxx' ) {
args[ 'placeholder' ] = 'Enter your content using Markdown';
}
return args;
} );