13 * @param \mdref\Path $path
15 function __construct(Path
$path = null) {
22 function __toString() {
27 $r = fopen($this->path
->getFullPath(".md"), "r");
28 $md = \MarkdownDocument
::createFromStream($r);
29 $md->compile(\MarkdownDocument
::AUTOLINK | \MarkdownDocument
::TOC
);
30 $html = $md->getHtml();
32 } catch (\Exception
$e) {
33 $html = ExceptionHandler
::html($e);
38 function quick($string) {
39 $md = \MarkdownDocument
::createFromString($string);
40 $md->compile(\MarkdownDocument
::AUTOLINK
);
41 return $md->getHtml();