TextformatterMarkdownExtra::markdown() method

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

NameType(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

string

Processed string


TextformatterMarkdownExtra methods and properties

API reference based on ProcessWire core version 3.0.244

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull