New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mjml-solid

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-solid - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/esm/extensions/mjml-comment.jsx

@@ -19,4 +19,4 @@ import { Show } from "solid-js";

return (<Show when={props.comment && props.comment.toString().trim().length}>
<mj-raw innerHTML={`<!--${props && props.comment ? props.comment : ""}-->`}></mj-raw>
<mj-raw textContent={`<!--${props && props.comment ? props.comment : ""}-->`}></mj-raw>
</Show>);
}
{
"name": "mjml-solid",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "SolidJS component library to generate the HTML emails on the fly",

@@ -1,6 +0,6 @@

Fork of [mjml-react](https://www.npmjs.com/package/mjml-solid) for [solid-js](https://www.npmjs.com/package/solid-js)
Fork of [mjml-react](https://www.npmjs.com/package/@faire/mjml-react) for [solid-js](https://www.npmjs.com/package/solid-js)
# mjml-solid &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/only-cliches/Mjml-solid/blob/master/LICENSE) <a href="https://www.npmjs.com/package/mjml-solid"><img src="https://img.shields.io/npm/v/mjml-solid" alt="npm version"></a> [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/only-cliches/Mjml-solid/)
<img src="https://cdn.worldvectorlogo.com/logos/mjml-by-mailjet.svg" height="64"/> &middot; <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0xMS41IC0xMC4yMzE3NCAyMyAyMC40NjM0OCI+CiAgPHRpdGxlPlJlYWN0IExvZ288L3RpdGxlPgogIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIyLjA1IiBmaWxsPSIjNjFkYWZiIi8+CiAgPGcgc3Ryb2tlPSIjNjFkYWZiIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiPgogICAgPGVsbGlwc2Ugcng9IjExIiByeT0iNC4yIi8+CiAgICA8ZWxsaXBzZSByeD0iMTEiIHJ5PSI0LjIiIHRyYW5zZm9ybT0icm90YXRlKDYwKSIvPgogICAgPGVsbGlwc2Ugcng9IjExIiByeT0iNC4yIiB0cmFuc2Zvcm09InJvdGF0ZSgxMjApIi8+CiAgPC9nPgo8L3N2Zz4K" width="64" height="64"/>
<img src="https://cdn.worldvectorlogo.com/logos/mjml-by-mailjet.svg" height="64"/>

@@ -17,6 +17,2 @@ There is an awesome library [mjml](https://mjml.io/) with github repo here [https://github.com/mjmlio/mjml](https://github.com/mjmlio/mjml).

1. Choose between rendering in mjml or mjml-browser based on your rendering environment. Also includes additional required dependencies.
node:
```bash

@@ -34,8 +30,15 @@ npm install mjml-solid mjml solid-js

// sync
export function renderSolidEmail(email: JSX.Element): MJMLParseResults {
return mjml2html(renderToMjml(email));
}
// async
export async function renderSolidEmailAsync(email: JSX.Element): Promise<MJMLParseResults> {
const mjmlSrc = await renderToMjmlAsync(email);
return mjml2html(mjmlSrc);
}
```
3. And afterwards write a code like a pro:
2. And afterwards write a code like a pro:

@@ -42,0 +45,0 @@ ```tsx

Sorry, the diff of this file is not supported yet

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