summaryrefslogtreecommitdiff
blob: 7490b9d28d0905ebdb6a8d3e19dcb617d08d7b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Markdown Block.
 *
 * @since 6.8.0
 *
 * @package Jetpack
 */

/**
 * The block depends on the Markdown module to be active for now.
 * Related discussion: https://github.com/Automattic/jetpack/issues/10294
 */
if (
	( defined( 'IS_WPCOM' ) && IS_WPCOM )
	|| ( method_exists( 'Jetpack', 'is_module_active' ) && Jetpack::is_module_active( 'markdown' ) )
) {
	jetpack_register_block( 'jetpack/markdown' );
}