TextformatterMarkdownExtra::markdown()
Given a string, return a version processed with markdown
Usage
// basic usage
$string = $textformatterMarkdownExtra->markdown($str);
// usage with all arguments
$string = $textformatterMarkdownExtra->markdown($str, $flavor = null, $safeMode = null);Arguments
| Name | Type(s) | Description |
|---|---|---|
$str | ||
$flavor (optional) | int null | Flavor of markdown (null=use module configured setting) |
$safeMode (optional) | bool null | Safe mode ON or OFF (null=use module configured setting) |
Return value
stringProcessed string
TextformatterMarkdownExtra methods and properties
API reference based on ProcessWire core version 3.0.255