react-remarkable

WebJar for react-remarkable

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-remarkable
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

react-remarkable
WebJar for react-remarkable
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/acdlite/react-remarkable

Download react-remarkable

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-remarkable/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-remarkable</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-remarkable/
implementation 'org.webjars.npm:react-remarkable:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/react-remarkable/
implementation ("org.webjars.npm:react-remarkable:1.1.1")
'org.webjars.npm:react-remarkable:jar:1.1.1'
<dependency org="org.webjars.npm" name="react-remarkable" rev="1.1.1">
  <artifact name="react-remarkable" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-remarkable', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "react-remarkable" % "1.1.1"
[org.webjars.npm/react-remarkable "1.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : remarkable jar [1.4.1,2)

Project Modules

There are no modules declared in this project.

react-remarkable

A React component for rendering Markdown with remarkable.

npm install --save react-remarkable

Usage

var React = require('react');
var Markdown = require('react-remarkable');

var MyComponent = React.createClass({

  render() {
    return (
      <div>
        {/* Pass Markdown source to the `source` prop */}
        <Markdown source="**Markdown is awesome!**" />

        {/* Or pass it as children */}
        {/* You can nest React components, too */}
        <Markdown>{`
          ## Reasons React is great

          1. Server-side rendering
          2. This totally works:

          <SomeOtherAmazingComponent />

          Pretty neat!
        `}</Markdown>
      </div>
    );
  }

});

Available props:

  • options - Hash of Remarkable options
  • source - Markdown source. You can also pass the source as children, which allows you to mix React components and Markdown.
  • container - Element to use as container. Defaults to div.

Syntax Highlighting

Atom

You can enable syntax highlighting in Atom using the following steps:

Go to Settings > Packages > language-babel Settings > Enter this for JavaScript Tagged Literal Grammar Extensions:

"(?<=<Markdown>{)":source.gfm

screen shot 2017-05-28 at 9 04 27 am

Shortly you'll see that markdown syntax highlighting is enabled.

screen shot 2017-05-28 at 9 06 31 am

License

MIT

Versions

Version
1.1.1