# wpsso/22.7.0/lib/ext/markdown.php

WPSSO Core – Complete Schema Markup and Meta Tags, version 22.7.0. 42 lines.

- Page: https://pluginprobe.com/plugins/wpsso/22.7.0/code/lib/ext/markdown.php
- Raw: https://pluginprobe.com/plugins/wpsso/22.7.0/raw/lib/ext/markdown.php
- Modified: 2026-03-25T12:08:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpsso/22.7.0/code/lib/ext/markdown.php#L10-L20`.

```php
<?php
/*
 * License: GPLv3
 * License URI: https://www.gnu.org/licenses/gpl.txt
 * Copyright 2017-2026 Jean-Sebastien Morisset (https://surniaulula.com/)
 */

if ( ! defined( 'ABSPATH' ) ) {

	die( 'These aren\'t the droids you\'re looking for.' );
}

if ( ! class_exists( 'Michelf\MarkdownExtra' ) ) {

	require_once dirname( __FILE__ ) . '/markdown/MarkdownExtra.inc.php';
}

/*
 * Provides the SuextMarkdown::transform() method.
 */
if ( ! class_exists( 'SuextMarkdown' ) ) {

	class SuextMarkdown {

		public static function transform( $text ) {

			return Michelf\MarkdownExtra::defaultTransform( $text );
		}
	}
}

/*
 * Provides the suext_markdown() function.
 */
if ( ! function_exists( 'suext_markdown' ) ) {

	function suext_markdown( $text ) {

		return SuextMarkdown::transform( $text );
	}
}

```
