Skip to content

Laravel keep using html components in markdown mailable. #20791

@przemoli

Description

@przemoli
  • Laravel Version: 5.4.28 (and 5.4.33 upgraded in copy of code base)
  • PHP Version: 7.0
  • Database Driver & Version:

Description:

->markdown() renders main template in markdown, however each @component is rendered accordingly to html template (and markdown there do not work - so markdown compilation pass for main template happens before components are in-lined).

Steps To Reproduce:

Create email view that will use @component.

Either:

php artisan make:mail --markdown=aaa

Or

$this->view('template')->with(['a' => $a]) into $this->markdown('template', ['a' => $a])

In both cases I was editing templates that come standard after php artisan vendor:publish. Only changes to templates in html folder where reflected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions