Skip to content

Commit

Permalink
Updated experimental Markdown file Shortcode to support displaying Gr…
Browse files Browse the repository at this point in the history
…av Markdown pages.
  • Loading branch information
paulhibbitts committed Nov 22, 2019
1 parent 785f6ba commit 88e2073
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shortcodes/MarkdownFileShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function init()
}

$file = file_get_contents($markdownfileurl);
$file = preg_replace('/---[\s\S]*---/', '', $file);
$markdown = Utils::processMarkdown($file);

return $markdown;
Expand Down

0 comments on commit 88e2073

Please sign in to comment.