Skip to content

Commit

Permalink
fix: link reference (#20)
Browse files Browse the repository at this point in the history
* fix: link reference

* feat: upgrade remark
  • Loading branch information
paranoidjk authored and benjycui committed Jun 5, 2017
1 parent 935e60a commit eabd20c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/npm-debug.log
.DS_Store
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"license": "MIT",
"dependencies": {
"jsonml.js": "^0.1.0",
"remark": "^4.2.0",
"remark": "^7.0.1",
"yaml-front-matter": "^3.4.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function transformer(node) {
case 'html':
return JsonML.fromHTMLText(node.value);
case 'linkReference':
return `[${node.identifier}]`;
return transformedChildren;
default:
return node;
}
Expand Down
2 changes: 2 additions & 0 deletions test/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ console.log('Hello world!');
</div>

<br />

[LINK REFERENCE]

0 comments on commit eabd20c

Please sign in to comment.