Skip to content
This repository has been archived by the owner on Aug 28, 2017. It is now read-only.

Commit

Permalink
Merge pull request #1 from nteract/default
Browse files Browse the repository at this point in the history
Default exports and README substance.
  • Loading branch information
rgbkrk committed Jul 23, 2015
2 parents 53c067a + 280f2d2 commit 700b5e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# transformime-commonmark

Transformer using commonmark.js

```
npm install transformime-commonmark
```

Usage with transformime:

```
> MarkdownTransformer = require('transformime-commonmark');
> mdt = new MarkdownTransformer();
> el = mdt.transform("```python\nimport this\n```\n", document);
> el.innerHTML
'<pre><code class="language-python">import this\n</code></pre>\n'
```
2 changes: 1 addition & 1 deletion src/commonmark-transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var commonmark = require("commonmark");

export class MarkdownTransformer {
export default class MarkdownTransformer {
constructor() {
this.reader = new commonmark.Parser();
this.writer = new commonmark.HtmlRenderer({
Expand Down

0 comments on commit 700b5e6

Please sign in to comment.