GithubHelp home page GithubHelp logo

c0dr / intellij-mjml-support Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timo-reymann/intellij-mjml-support

0.0 0.0 0.0 3.84 MB

MJML support for the IntelliJ Platform.

Home Page: https://timo-reymann.github.io/intellij-mjml-support/

License: Other

Kotlin 96.75% HTML 0.40% JavaScript 2.40% CSS 0.01% TypeScript 0.44%

intellij-mjml-support's Introduction

intellij-mjml-support

GitHub Release JetBrains Plugins CircleCI

MJML support for the IntelliJ Platform.

You are missing something or something is broken? - Feel free to file a PR/issue or open a discussion on GitHub!

What's in the box?

Fore more details please look up the plugin description in the marketplace or directly in the plugin.xml.

How can I use it?

  1. Install it from the plugin repository
  2. You are done, enjoy the magic!

Extension

Custom mjml resolution

You want to add custom mjml tags or custom resolving to match your needs?

Simply use the extension point de.timo_reymann.intellij-mjml-support.tagInformationProvider:

<extensions defaultExtensionNs="de.timo_reymann.intellij-mjml-support">
    <tagInformationProvider implementation="my.company.OurCustomTaginformationProvider"/>
</extensions>

Custom rendering

  • Execution context: parent folder for file to render
  • Input from stdin:
      {
        "directory": "absolute path to project root, this might be different from the current file location",
        "content": "file editor content to render"
      }
  • Output to stdout must be in json in this format for:
      {
        "html": "string|null",
        "errors": [
          {
            "line": "integr|null",
            "message":  "string|null",
            "tagName": "string|null",
            "formattedMessage": "string|null"
          } 
        ]
      }
    where errors can be empty, but can never be omitted!

Notes about implementation

  • The preview editor support is adapted from the official markdown plugin
  • Preview uses bundled node_modules for mjml rendering currently, support for custom rendering is currently in development

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.