MCPcopy Create free account
hub / github.com/cnodejs/nodeclub / hashElement

Function hashElement

public/libs/showdown.js:431–445  ·  view source on GitHub ↗
(wholeMatch,m1)

Source from the content-addressed store, hash-verified

429}
430
431var hashElement = function(wholeMatch,m1) {
432 var blockText = m1;
433
434 // Undo double lines
435 blockText = blockText.replace(/\n\n/g,"\n");
436 blockText = blockText.replace(/^\n/,"");
437
438 // strip trailing blank lines
439 blockText = blockText.replace(/\n+$/g,"");
440
441 // Replace the element text with a marker ("~KxK" where x is its key)
442 blockText = "\n\n~K" + (g_html_blocks.push(blockText)-1) + "K\n\n";
443
444 return blockText;
445};
446
447var _RunBlockGamut = function(text) {
448//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected