Smart.Framework and Smart.Framework.Modules : PHP Documentation
☰
final class \ SmartMarkdownToHTML
{
} ->
Language: PHP
Located at: lib/framework/plugins/lib_markdown.php
Package: Plugins:ConvertersAndParsers
Namespace: \
Class Name: SmartMarkdownToHTML
Version: v.20231018
Depends: classes: Smart, SmartEnvironment, SmartUnicode, SmartHtmlParser ; optional-constants: SMART_MARKDOWN_LAZYLOAD_DEFAULT_IMG
Usage: dynamic object: (new Class())->method() - This class provides only DYNAMIC methods
public function __construct (
bool $y_sBreakEnabled = true ,
bool $y_mediaExtraEnabled = true ,
bool $y_lazyLoadImgDisabled = false ,
string $y_renderOptions = null ,
string $y_relative_url_prefix = null ,
bool $y_log_render_notices = false ,
array $y_arr_preserve_extra_syntax = null ,
bool $y_useCompatibilityMode = false
) {} @
public function parse (
string $text
) {}
-> STRING
@return: {STRING} HTML code
@param: {STRING} $text: The Markdown to be processed
public const ESCAPINGS_REPLACEMENTS = ["\\\\" => "\\", "\\_" => "_", "\\*" => "*", "\\-" => "-", "\\+" => "+", "\\=" => "=", "\\`" => "`", "\\~" => "~", "\\!" => "!", "\\?" => "?", "\\#" => "#", "\\$" => "$", "\\@" => "@", "\\%" => "%", "\\^" => "^", "\\(" => "(", "\\)" => ")", "\\[" => "[", "\\]" => "]", "\\{" => "{", "\\}" => "}", "\\." => ".", "\\," => ",", "\\:" => ":", "\\;" => ";", "\\<\\<\\<" => "<<<"] ; ::
<?php $markdown = new SmartMarkdownToHTML (); $html = $markdown -> parse ( 'Hello **SmartMarkdownToHTML** !' ); // $html would be (default): '<div class="mkdw-line">Hello <b>SmartMarkdownToHTML</b> !</div>' // or if set with paragraphs $html would be: '<p>Hello <b>SmartMarkdownToHTML</b> !</p>' <!-- paragraphs cannot be nested like divs, but is just another option ... --> // #end php code
* PHP Class \SmartMarkdownToHTML # Documentation Index *
Class definition
Methods list
· function __construct()
· function parse()
Properties list
Constants list
· const ESCAPINGS_REPLACEMENTS
Sample code
documentation generated on: 2023-10-19 23:15:45 +0000
Smart.Framework © 2009-2023 unix-world.org