Skip to content

Commit ba01043

Browse files
author
Jiang Shang
committed
0.1.0
1 parent 81ff39b commit ba01043

File tree

8 files changed

+1427
-30
lines changed

8 files changed

+1427
-30
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
22
npm-debug.log
3-
/dist/

README.md

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
11
HyperDown.js
22
======================
3-
HyperDown 的 js 版本
4-
从 php 版本移植而来
53

4+
这是 js 版本 HyperDown
65

6+
翻译为 ES6 的 [src/Parser.js](blob/master/src/Parser.js)
7+
8+
##开发者使用方法##
9+
###nodejs 中使用##
10+
[dist/Parser.js](blob/master/src/Parser.js) (用 babel 编译成 ES5 的版本)
11+
用 babel 编译:
12+
```
13+
$ babel src/Parser.js -o dist/Parser.js
14+
```
15+
16+
###浏览器中使用###
17+
[hyperdown.js](blob/master/hyperdown.js) ( webpack 打包后的版本 )
18+
用 webpack 打包:
19+
```
20+
npm build
21+
```
22+
或者:
23+
```
24+
npm watch
25+
```
26+
27+
###单元测试###
28+
```
29+
npm test
30+
```
731

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

4872
- 图片和链接支持互相套用
73+
74+
浏览器中使用请参阅 [HyperDown.js](https://github.com/SegmentFault/HyperDown.js)

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyperdown",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"repo": "segmentfault/hyperdown.js",
55
"description": "A markdown parser",
66
"keywords": ["markdown", "hyperdown", "html"],

0 commit comments

Comments
 (0)