Appearance
Convert
php
final readonly class KMark\ConvertKMark converts Markdown to HTML, as the original Markdown does, and lets you set an id and CSS classes on the elements with "{#id .class}".
Copyright (c) 2013 Stanislas Poisson - MIT license https://stanislas-poisson.fr
Source: src/Convert.php
Methods
__construct()
php
public function __construct(Options $options = new Options(), string $text = '')toHtml()
php
public static function toHtml(string $text, Options $options = null): stringConverts a text in one call.
convert()
php
public function convert(): selfA converter that holds the text of this one, converted to HTML.
getText()
php
public function getText(): stringwithText()
php
public function withText(string $text): selfA converter that has the same options and holds the given text.