Skip to content

Commit

Permalink
Add support for Markdown Extra syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpede committed Nov 28, 2018
1 parent fd41e5c commit b504b03
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ function __construct(modX &$modx, array $config = array())
'connectorUrl' => $assetsUrl . 'connector.php'
), $config);
$this->modx->addPackage('githubdocs', $this->config['modelPath']);
//dependencies
$this->parse = new Parsedown();
}

/**
Expand Down Expand Up @@ -217,7 +215,8 @@ public function getDirectory(string $repo_owner, string $repo_name, string $uri,
public function parseMarkDown(string $md = null)
{
try {
$html = $this->parse->text(base64_decode($md));
$parse = new ParsedownExtra();
$html = $parse->text(base64_decode($md));
return $html;
} catch (Exception $e) {
throw $e;
Expand Down

0 comments on commit b504b03

Please sign in to comment.