MCPcopy Create free account
hub / github.com/CoderOpen/waimai / done

Function done

front/components/marked/lib/marked.js:1452–1471  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

1450 pending = tokens.length;
1451
1452 var done = function(err) {
1453 if (err) {
1454 opt.highlight = highlight;
1455 return callback(err);
1456 }
1457
1458 var out;
1459
1460 try {
1461 out = Parser.parse(tokens, opt);
1462 } catch (e) {
1463 err = e;
1464 }
1465
1466 opt.highlight = highlight;
1467
1468 return err
1469 ? callback(err)
1470 : callback(null, out);
1471 };
1472
1473 if (!highlight || highlight.length < 3) {
1474 return done();

Callers 1

markedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected