MCPcopy Index your code
hub / github.com/witheve/Eve / parseBackslash

Function parseBackslash

src/commonmark.js:1227–1242  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

1225// or a literal backslash to the block's children. Assumes current character
1226// is a backslash.
1227var parseBackslash = function(block) {
1228 var subj = this.subject;
1229 var node;
1230 this.pos += 1;
1231 if (this.peek() === C_NEWLINE) {
1232 this.pos += 1;
1233 node = new Node('linebreak');
1234 block.appendChild(node);
1235 } else if (reEscapable.test(subj.charAt(this.pos))) {
1236 block.appendChild(text(subj.charAt(this.pos)));
1237 this.pos += 1;
1238 } else {
1239 block.appendChild(text('\\'));
1240 }
1241 return true;
1242};
1243
1244// Attempt to parse an autolink (URL or email in pointy brackets).
1245var parseAutolink = function(block) {

Callers

nothing calls this directly

Calls 3

textFunction · 0.85
peekMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected