Plugin for converting LaTeX equation into image #177

Merged
merged 3 commits into from Jun 4, 2015

Projects

None yet

2 participants

@ypcat
Contributor
ypcat commented May 20, 2015

Example usage:

!tex \sum_{i=1}^{n} x_{i}^{2}

2015-05-20 20 54 38

@yagop yagop commented on an outdated diff May 23, 2015
plugins/tex.lua
@@ -0,0 +1,36 @@
+do
+
+
+function escape(s)
@yagop
yagop May 23, 2015 Owner

Should be declared as local.
Use URL.escape(query) ?

@ypcat
Contributor
ypcat commented May 27, 2015

@yagop
At first I used URL:escape(query) but I got this error:

 *** lua: .luarocks/share/lua/5.2/socket/url.lua:31: bad argument #1 to 'gsub' (string expected, got table)

So I copied escape function to the plugin.

@yagop yagop merged commit d63c88c into yagop:master Jun 4, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment