更新marked组件;迁移md5插件
parent
fadd599ddd
commit
98ec64948a
|
@ -1128,7 +1128,6 @@ Parser.prototype.tok = function() {
|
|||
return this.renderer.mark(body, this.token.mark);
|
||||
}
|
||||
case 'task': {
|
||||
log(this.token)
|
||||
return this.renderer.task(this.token.text, this.token.mark)
|
||||
}
|
||||
case 'list_start': {
|
||||
|
@ -1333,6 +1332,7 @@ marked.setOptions = function(opt) {
|
|||
merge(marked.defaults, opt);
|
||||
return marked;
|
||||
};
|
||||
if (window.yua) {yua.ui.marked = '1.0.0'}
|
||||
|
||||
marked.defaults = {
|
||||
gfm: true,
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
### demo:
|
||||
|
||||
```javascript
|
||||
require(['./md5'], function(SparkMD5){
|
||||
require(['./md5/main'], function(SparkMD5){
|
||||
var Spark = new SparkMD5()
|
||||
var md5 = function(cont){
|
||||
return Spark.sign.call(Spark, cont)
|
||||
|
|
Reference in New Issue