tangled
alpha
login
or
join now
ansxor.ca
/
markup2
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
1
pulls
pipelines
fix table cells not setting prev, and weird \. behavior
12Me21
3 years ago
bc0ce598
cc98194e
+4
-3
1 changed file
expand all
collapse all
unified
split
parse.js
+4
-3
parse.js
···
172
172
let o = pop()
173
173
let type = o.type
174
174
175
175
-
if ('newline'===o.prev)
176
176
-
o.content.push("\n")
175
175
+
//if ('newline'===o.prev)
176
176
+
// o.content.push("\n")
177
177
178
178
switch (type) { default: {
179
179
push(current, type, o.args, o.content)
···
195
195
// push cell if not empty
196
196
if (!cancel || o.content.length) {
197
197
push(current, type, process_cell_args(o.args), o.content)
198
198
+
current.prev = 'block'
198
199
}
199
200
// cancelled = next row
200
201
if (cancel) {
···
551
552
else if ("\\."===token) { // \. is a no-op
552
553
// todo: close lists too
553
554
//current.content.push("")
554
554
-
current.prev = 'block'
555
555
+
//current.prev = 'block'
555
556
} else
556
557
TEXT(token.substring(1))
557
558
} break; case 'QUOTE': {