Metadata-Version: 2.0
Name: jsx-lexer
Version: 0.0.2
Summary: A JSX lexer for Pygments
Home-page: https://github.com/fcurella/jsx-lexer
Author: Flavio Curella
Author-email: flavio.curella@gmail.com
License: MIT License
Keywords: pygments highlight jsx react
Platform: UNKNOWN
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Dist: Pygments (>=2.1)

jsx-lexer
=========

A JSX lexer for Pygments

Installation
------------
.. code-block:: sh

    $ pip install jsx-lexer

Usage
-----

To use within Sphinx, simply specify ``jsx`` for your ``code-block``::

    .. code-block:: jsx

        const BlogTitle = ({ children }) => (
          <h3>{children}</h3>
        );
        // class component
        class BlogPost extends React.Component {
          renderTitle(title) {
            return <BlogTitle>{title}</BlogTitle>
          };
          render() {
            return (
            <div className="blog-body">
              {this.renderTitle(this.props.title)}
              <p>{this.props.body}</p>
            </div>
            );
          }
        }


