summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/markdown/markdown.php')
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/markdown.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/markdown/markdown.php b/plugins/jetpack/extensions/blocks/markdown/markdown.php
new file mode 100644
index 00000000..7490b9d2
--- /dev/null
+++ b/plugins/jetpack/extensions/blocks/markdown/markdown.php
@@ -0,0 +1,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' );
+}
+