Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang Shang committed Aug 29, 2015
1 parent 81ff39b commit ba01043
Show file tree
Hide file tree
Showing 8 changed files with 1,427 additions and 30 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
npm-debug.log
/dist/
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
HyperDown.js
======================
HyperDown 的 js 版本
从 php 版本移植而来

这是 js 版本 HyperDown

翻译为 ES6 的 [src/Parser.js](blob/master/src/Parser.js)

##开发者使用方法##
###nodejs 中使用##
[dist/Parser.js](blob/master/src/Parser.js) (用 babel 编译成 ES5 的版本)
用 babel 编译:
```
$ babel src/Parser.js -o dist/Parser.js
```

###浏览器中使用###
[hyperdown.js](blob/master/hyperdown.js) ( webpack 打包后的版本 )
用 webpack 打包:
```
npm build
```
或者:
```
npm watch
```

###单元测试###
```
npm test
```

为何要写这样一个解析器
======================
Expand Down Expand Up @@ -46,3 +70,5 @@ $html = $parser->makeHtml($text);
--------------

- 图片和链接支持互相套用

浏览器中使用请参阅 [HyperDown.js](https://github.com/SegmentFault/HyperDown.js)
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperdown",
"version": "0.0.2",
"version": "0.1.0",
"repo": "segmentfault/hyperdown.js",
"description": "A markdown parser",
"keywords": ["markdown", "hyperdown", "html"],
Expand Down
Loading

0 comments on commit ba01043

Please sign in to comment.