Skip to content

Commit

Permalink
Allow <mj-raw> inside <mj-list> to be used e.g. with template engines.
Browse files Browse the repository at this point in the history
This fixes premail#12.
  • Loading branch information
BluePsyduck committed Jul 29, 2023
1 parent 1d068ce commit 333da02
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/MjLi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class MjLi extends BodyComponent {

static dependencies = {
'mj-li': [],
'mj-list': ['mj-li'],
'mj-list': ['mj-li', 'mj-raw'],
}

static allowedAttributes = {
Expand Down
2 changes: 1 addition & 1 deletion components/MjList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class MjList extends BodyComponent {
static componentName = 'mj-list'

static dependencies = {
'mj-list': ['mj-li'],
'mj-list': ['mj-li', 'mj-raw'],
'mj-column': ['mj-list'],
}

Expand Down
2 changes: 1 addition & 1 deletion lib/MjLi.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ _defineProperty(MjLi, 'endingTag', true)

_defineProperty(MjLi, 'dependencies', {
'mj-li': [],
'mj-list': ['mj-li'],
'mj-list': ['mj-li', 'mj-raw'],
})

_defineProperty(MjLi, 'allowedAttributes', {
Expand Down
2 changes: 1 addition & 1 deletion lib/MjList.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ exports['default'] = MjList
_defineProperty(MjList, 'componentName', 'mj-list')

_defineProperty(MjList, 'dependencies', {
'mj-list': ['mj-li'],
'mj-list': ['mj-li', 'mj-raw'],
'mj-column': ['mj-list'],
})

Expand Down

0 comments on commit 333da02

Please sign in to comment.