1
0
Fork 0
Commit graph

32 commits

Author SHA1 Message Date
Waylon Flinn
2a45cb8b71 Merge pull request #3 from PaulSohn/patch-1
Fixed index.js delimeter logic
2016-04-22 11:55:30 -05:00
Waylon Flinn
d1b4eacd75 test: more inline tests from simplemath 2016-04-22 11:47:28 -05:00
Waylon Flinn
d82d995749 test: empty inline produces no render 2016-04-22 11:42:25 -05:00
Waylon Flinn
d399f3040c all tests from markdown-it-math 2016-04-21 17:40:44 -05:00
Waylon Flinn
60ac3e7d23 add travis badge 2016-04-21 15:24:58 -05:00
Waylon Flinn
75645e6c5d remove tabs from travis config 2016-04-21 15:20:06 -05:00
Waylon Flinn
3e32138fe0 travis config 2016-04-21 15:18:21 -05:00
Waylon Flinn
ddb89a5861 block math test fixture 2016-04-21 13:01:27 -05:00
Waylon Flinn
e31c2bab7a comments 2016-04-21 13:01:05 -05:00
Waylon Flinn
ae37a845e7 integrate markdown-it-testgen 2016-04-21 12:40:31 -05:00
Waylon Flinn
1423f6e58f unit testing setup 2016-04-21 12:06:29 -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
3e7261b90a add LICENSE 2016-03-11 10:06:42 -06:00
Waylon Flinn
1dcbfdff91 link to github stylesheet 2016-03-11 09:40:00 -06:00
Waylon Flinn
4ed1a48268 more complete example 2016-03-11 09:37:47 -06:00
Waylon Flinn
3fcb5615f9 funnies 2016-03-11 09:23:11 -06:00
Waylon Flinn
f0e49daca6 improve demo 2016-03-11 09:16:54 -06:00
Waylon Flinn
d24afe947e include markdown-it in usage instructions 2016-03-11 09:07:59 -06:00
Waylon Flinn
5c454f62a3 better formatting for intro links 2016-03-11 08:59:39 -06:00
Waylon Flinn
fc618204a4 link to demo on gh-pages 2016-03-11 08:57:34 -06:00
Waylon Flinn
2f37ee1476 add markdown-it as devDependency 2016-03-11 08:53:56 -06:00
Waylon Flinn
7368f20905 remove github css from master 2016-03-11 08:50:31 -06:00
Waylon Flinn
243d60eebc add git repo to package.json 2016-03-11 08:47:13 -06:00
Waylon Flinn
c462c97451 update KaTeX stylesheet reference 2016-03-11 08:38:46 -06:00
Waylon Flinn
a42f77c713 links to KaTeX and benchmark 2016-03-11 08:33:17 -06:00
Waylon Flinn
e4889ec726 add to markdown-it plugin directory 2016-03-11 08:24:12 -06:00
Waylon Flinn
c5a0bbc556 clarify usage 2016-03-11 08:06:29 -06:00
Waylon Flinn
2f0dd45d52 bump version 2016-03-11 08:04:01 -06:00
Waylon Flinn
d459dec099 how to set up the plugin 2016-03-11 08:03:17 -06:00
Waylon Flinn
fa076fb4ed add gitignore 2016-03-11 08:01:19 -06:00
Waylon Flinn
1f131892db initial commit 2016-03-11 07:56:48 -06:00