New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin for converting LaTeX equation into image #177

Merged
merged 3 commits into from Jun 4, 2015

Conversation

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

Show outdated Hide outdated plugins/tex.lua
do
function escape(s)

This comment has been minimized.

@yagop

yagop May 23, 2015

Owner

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

@yagop

yagop May 23, 2015

Owner

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

@ypcat

This comment has been minimized.

Show comment
Hide comment
@ypcat

ypcat May 27, 2015

Contributor

@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.

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