Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Iterator-based code
function parseTable(title, lines) {
let options = new TableOptions(lines.next());
...
yield '<table>';
for (let line of lines) {
if (line.startsWith(macros.tableEnd))
break;
...
let buffer = line;
while(true) {
let open = buffer.match(openRE).length;
let close = buffer.match(closeRE).length;
if (close >= open) break;
buffer += lines.next();
}
...
}
...
yield '</table>';
}
function parse(lines) {
...
for (let line of lines) {
...
if (macro === macros.tableStart)
for (let l of parseTable(line, lines))
yield l;
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.