MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / done

Function done

packages/utils/renderer/marked.js:1306–1323  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

1304 pending = tokens.length;
1305
1306 var done = function (err) {
1307 if (err) {
1308 opt.highlight = highlight;
1309 return callback(err);
1310 }
1311
1312 var out;
1313
1314 try {
1315 out = Parser.parse(tokens, opt);
1316 } catch (e) {
1317 err = e;
1318 }
1319
1320 opt.highlight = highlight;
1321
1322 return err ? callback(err) : callback(null, out);
1323 };
1324
1325 if (!highlight || highlight.length < 3) {
1326 return done();

Callers 1

markedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected