Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from ReeceM/fix/markdown-to-blade
Browse files Browse the repository at this point in the history
fix: make markdown be blade compatible
  • Loading branch information
Qoraiche authored May 6, 2019
2 parents 974b3e4 + 1ba8943 commit 37c38c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Http/Controllers/MailablesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ public function parseTemplate(Request $request)

$viewPath = $request->has('template') ? $request->viewpath : base64_decode($request->viewpath);

if( mailEclipse::markdownedTemplateToView(true, $request->markdown, $viewPath, $template) ){
// ref https://regexr.com/4dflu
$bladeRenderable = preg_replace('/((?!{{.*?-)(>)(?=.*?}}))/', '>', $request->markdown);

if( mailEclipse::markdownedTemplateToView(true, $bladeRenderable, $viewPath, $template) ){

return response()->json([
'status' => 'ok',
Expand Down

0 comments on commit 37c38c0

Please sign in to comment.