b0VIM 8.13(] #cyMacBook-Pro-10.localdomain~cy/projects/ones/marked/lib/lexer.jsutf-8 3210#"! UtpL}ad: L~eO"!vu^; s R Q , ( ' X &  x a W V   | t n m V R P O : 9 N /  on`SH<3'~N"n1SBdVL:21\?3! this.tokens.push({ src = src.substring(cap[0].length); if (cap = this.rules.heading.exec(src)) { // heading } continue; }); text: cap[3] || '' lang: cap[2] ? cap[2].trim() : cap[2], type: 'code', this.tokens.push({ src = src.substring(cap[0].length); if (cap = this.rules.fences.exec(src)) { // fences (gfm) } continue; } }); rtrim(cap, '\n') : cap text: !this.options.pedantic ? codeBlockStyle: 'indented', type: 'code', this.tokens.push({ cap = cap[0].replace(/^ {4}/gm, ''); } else { lastToken.text += '\n' + cap[0].trimRight(); if (lastToken && lastToken.type === 'paragraph') { // An indented code block cannot interrupt a paragraph. src = src.substring(cap[0].length); var lastToken = this.tokens[this.tokens.length - 1]; if (cap = this.rules.code.exec(src)) { // code } } }); type: 'space' this.tokens.push({ if (cap[0].length > 1) { src = src.substring(cap[0].length); if (cap = this.rules.newline.exec(src)) { // newline while (src) { ischecked; istask, isordered, l, tag, i, space, t, listItems, listStart, item, b, bull, cap, loose, let next, let src = srcStr.replace(/^ +$/gm, ''); token(srcStr, top) { // Lexing, tokenize the source markdown string } return this.token(srcStr, true); .replace(/\u2424/g, '\n'); .replace(/\u00a0/g, ' ') .replace(/\t/g, ' ') .replace(/\r\n|\r/g, '\n') const srcStr = src lex(src) { } return lexer.lex(src); var lexer = new Lexer(options); static lex = (src, options) => { // Static Lex Method static export default Lexer} } return this.tokens } } throw new Error(`Infinite loop on byte: ${src.charCodeAt(0)}`) if (!isStrMatched && src) { }) return true isStrMatched = true src = subStr || src.substring(cap[0].length); } return false if (subStr === -1) { const subStr = grammar.tokenize(cap, src, this.tokens, this.token.bind(this), top) } return false if (!cap) { const cap = grammar.rules.block.exec(src) this.grammars.some((grammar) => { let isStrMatched = false while (src) { let src = srcStr.replace(/^ +$/gm, ''); token(srcStr, top) { // Lexing, tokenize the source markdown string } return this.token(srcStr, true); .replace(/\u2424/g, '\n'); .replace(/\u00a0/g, ' ') .replace(/\t/g, ' ') .replace(/\r\n|\r/g, '\n') const srcStr = src lex(src) { } return lexer.lex(src); const lexer = new Lexer(options); static lex = (src, options) => { // Static Lex Method static rules = block // Expose Block Rules } this.grammars = this.options.grammars // Passed in grammars this.options = options || getDefaultOptions() this.tokens.links = Object.create(null); this.tokens = []; constructor(options) {class Lexer {} from './utils' getDefaultOptions,import {} from './grammar-rules' block,import { */ * Block Lexer/**adK }utf9 won]  export default Lexer} } return this.tokens } } throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); if (src) { } continue; }); text: cap[0] type: 'text', this.tokens.push({ src = src.substring(cap[0].length); // Top-level should never reach here. if (cap = this.rules.text.exec(src)) { // text } continue; }); cap[1].slice(0, -1) : cap[1] text: cap[1].charAt(cap[1].length - 1) === '\n' ?