1
0
Fork 0
Commit graph

5 commits

Author SHA1 Message Date
Waylon Flinn
0c737c10ba don't match empty inline block 2016-04-22 12:05:08 -05:00
Waylon Flinn
152877dc41 render unclosed display block 2016-04-22 11:59:42 -05:00
PaulSohn
c58b297f43 Fixed index.js delimeter logic
* Since the code is suggesting using only $ - $ for inline, $$ - $$ for block math syntax,
 specific delimiter for $ - $ and $$ - $$ is required, not general escape logic.
 also it will fix the issue #2.

* Some code optimization and variable name change was done.

* I found that 'throwOnError:false' option doesn't actually work on katex. They will still throw an error if the syntax is invalid.
 So instead of sending this directly, I fixed this code to catch the error internally, return the original latex token, and log it on the console when throwOnError option is explicitly set to true.
2016-04-21 20:56:33 +09:00
Waylon Flinn
1922f1d732 allow KaTeX options 2016-03-19 10:24:41 -05:00
Waylon Flinn
1f131892db initial commit 2016-03-11 07:56:48 -06:00