Socket
Socket
Sign inDemoInstall

mjml-text

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-text - npm Package Compare versions

Comparing version 2.0.0-beta.4 to 2.0.0-beta.5

6

lib/index.js

@@ -69,5 +69,3 @@ 'use strict';

value: function getStyles() {
var _props = this.props;
var mjAttribute = _props.mjAttribute;
var color = _props.color;
var mjAttribute = this.props.mjAttribute;

@@ -77,3 +75,3 @@

div: {
color: mjAttribute('locked') ? color : mjAttribute('color'),
color: mjAttribute('color'),
fontFamily: mjAttribute('font-family'),

@@ -80,0 +78,0 @@ fontSize: mjAttribute('font-size'),

{
"name": "mjml-text",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"main": "lib/index.js",

@@ -15,6 +15,6 @@ "repository": {

"dependencies": {
"lodash": "^4.6.1",
"mjml-core": "^2.0.0-beta.4",
"react": "^0.14.7"
"lodash": "^4.7.0",
"mjml-core": "^2.0.0-beta.5",
"react": "^0.14.8"
}
}

@@ -1,1 +0,51 @@

mjml-text
## MJ-TEXT
``` html
<mj-section>
<mj-column>
<mj-text>
<h1>Hey Title!</h1>
</mj-text>
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-text>
Hey There!
</mj-text>
</mj-column>
</mj-section>
```
This tag allows you to display text in your email.
<aside class="notice">
`MjText` can contain any HTML tag with any attributes. Don't forget to encode special characters to avoid unexpected behaviour from MJML's parser
</aside>
<p align="center">
<a href="/try-it-live/text"><img width="100px" src="http://imgh.us/TRYITLIVE.svg" alt="sexy" /></a>
</p>
attribute | unit | description | default value
------------------|---------------|--------------------------------|-------------------------------------
color | color | text color | #000000
font-family | string | font | Ubuntu, Helvetica, Arial, sans-serif
font-size | px | text size | 13px
font-style | string | normal/italic/oblique | n/a
font-weight | number | text thickness | n/a
line-height | px | space between the lines | 22px
text-decoration | string | underline/overline/none | n/a
align | string | left/right/center | left
padding | px | supports up to 4 parameters | 10px 25px
padding-top | px | top offset | n/a
padding-bottom | px | bottom offset | n/a
padding-left | px | left offset | n/a
padding-right | px | right offset | n/a
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc