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
sorryy..
12Me21
3 years ago
af4e4a0c
9709f65f
+2
-2
2 changed files
expand all
collapse all
unified
split
parse.js
testing
parse-ref.js
+1
-1
parse.js
···
311
311
}
312
312
const ARG_REGEX = /.*?(?=])/y
313
313
const WORD_REGEX = /[^\s`^()+=\[\]{}\\|"';:,.<>/?!*]*/y
314
314
-
const CODE_REGEX = /(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n```|$)/y // ack
314
314
+
const CODE_REGEX = /(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n?```|$)/y // ack
315
315
316
316
const parse=(text)=>{
317
317
let tree = {type: 'ROOT', content: [], prev: 'all_newline'}
+1
-1
testing/parse-ref.js
···
72
72
/(?:\[([^\]\n]*)\])? */y
73
73
74
74
const ARGS_CODE = // ... ```
75
75
-
/(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n```|$)/y // @@@ backported \n```
75
75
+
/(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n?```|$)/y // @@@ backported \n```
76
76
77
77
PAT`[\n]?[}]${{ BLOCK_END: 0}}`
78
78
PAT`[\n]${{ NEWLINE: 0}}`