GithubHelp home page GithubHelp logo

midas's Introduction


midas


A CSS syntax highlighter based on PostCSS.

Build Status NPM version Dependency Status

midas generates a highly customisable base for syntax highlighting in HTML. Simply pass in a CSS string and it will generate a HTML output. You can then pair it with any of the included themes, or just as easily write your own.

For further details, check out the website!

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

Links

Please help to support this project by purchasing a midas sticker.

License

Base 16 themes used by this module are MIT ยฉ 2012 Chris Kempson & contributors.

MIT ยฉ Ben Briggs

midas's People

Contributors

ben-eb avatar greenkeeperio-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

midas's Issues

Refactor: Investigate outputting an AST rather than HTML

Leaving this here for a reference, it's low down on my priority list for now.

I'm considering making this module output something that is more compatible with React, and other consumers, which work best with a node tree instead of setting HTML dangerously.

We can do this by using https://github.com/wooorm/hastscript and https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript. Also, we can use https://github.com/wooorm/hast-util-to-html to keep a HTML output, but not make it the default. Finally, we can use https://github.com/wooorm/hast-to-hyperscript to transform the HAST tree to another output.

Help welcome if you have any experience in this area. ๐Ÿ˜„

Failed to stringify

Hello,

I have case when midas fails to stringify certain piece of postcss.

It goes like this:

$small:  34em;

@custom-media --small (width >= $small);

and it ends with

midas/dist/stringifier.js:73
                            if (child.nodes[i + 1].value === ':') {
                                                  ^

TypeError: Cannot read property 'value' of undefined

Would you consider this as a bug?

Cheers

Refactor: Remove the CLI.

I don't actually use this anymore, so rather than spinning it off into a separate module I am thinking of removing it altogether.

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.