class MarkdownString implements Stringable

Methods

void
__construct(string $markdown = '')

Constructor

string|null
getLink()

Get the link from the Markdown string

bool
hasLink()

Has the link or not?

string
__toString()

Implements Stringable interface

Details

at line 17
void __construct(string $markdown = '')

Constructor

Parameters

string $markdown

The Markdown string.

Return Value

void

Examples

new MarkdownString('# foo')

Get the link from the Markdown string

Return Value

string|null

The method returns the link from the Markdown string or null if not found in the Markdown string

Has the link or not?

Return Value

bool

The method returns true if the link

at line 48
string __toString()

Implements Stringable interface

Return Value

string