Skip to content

Commit

Permalink
Merge pull request #34 from peerigon/update-to-marked-0.4.0
Browse files Browse the repository at this point in the history
Update to marked 0.4.0
  • Loading branch information
meaku committed May 29, 2018
2 parents 1853cc1 + f10593b commit 84c989b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"homepage": "https://github.com/peerigon/markdown-loader",
"dependencies": {
"loader-utils": "^1.1.0",
"marked": "^0.3.9"
"marked": "^0.4.0"
},
"devDependencies": {
"ava": "^0.18.0",
Expand Down
4 changes: 4 additions & 0 deletions test/assets/markdown.md
Expand Up @@ -9,3 +9,7 @@ _italic_ is the new __bold__
```javascript
const i = 100;
```

| name | type |
| --- | --- |
| key | `string\|number` |
2 changes: 1 addition & 1 deletion test/index.test.js
Expand Up @@ -41,7 +41,7 @@ test.cb(t => {
}

const bundle = require("./output/bundle");
t.is(bundle, '<h1 id=\"heading-1\">heading 1</h1>\n<ul>\n<li>buy pineapple</li>\n</ul>\n<h2 id=\"heading-2\">heading 2</h2>\n<p><em>italic</em> is the new <strong>bold</strong></p>\n<pre><code class=\"lang-javascript\"><span class=\"hljs-attribute\">const i</span> = 100;\n</code></pre>\n');
t.is(bundle, '<h1 id=\"heading-1\">heading 1</h1>\n<ul>\n<li>buy pineapple</li>\n</ul>\n<h2 id=\"heading-2\">heading 2</h2>\n<p><em>italic</em> is the new <strong>bold</strong></p>\n<pre><code class=\"language-javascript\"><span class=\"hljs-attribute\">const i</span> = 100;</code></pre>\n<table>\n<thead>\n<tr>\n<th>name</th>\n<th>type</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>key</td>\n<td><code>string|number</code></td>\n</tr>\n</tbody></table>\n');

t.end();
});
Expand Down

0 comments on commit 84c989b

Please sign in to comment.