Skip to content

Math rendering as a Slack integration via Wikimedia Mathoid.

License

Notifications You must be signed in to change notification settings

Xyene/slack-mathoid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-mathoid

Math rendering as a Slack integration via Wikimedia Mathoid.

Try it out!

Simply add https://puck.dmoj.ca/typeset as an outgoing webhook in your Slack channel.

You can trigger slack-mathoid by prefixing LaTeX commands with !math.

slack-mathoid in action

Installation

slack-mathoid setup is easy.

$ git clone https://github.com/Xyene/slack-mathoid.git
$ cd slack-mathoid
$ python setup.py develop

Running slack-mathoid

To start slack-mathoid, simply run:

export MATHOID_URL="http://localhost:10044"
export MATHOID_CACHE="/web/static"
export MATHOID_SERVE_URL="https://math.example.org"
slack-mathoid --port=8888

This will start a Slack webhook on localhost:8888/typset, which should be forwarded and added as an outgoing webhook on Slack. Cached math will be stored in MATHOID_CACHE, and served off MATHOID_SERVE_URL. slack-mathoid assumes a Mathoid server is running on MATHOID_URL.

You may optionally provide a SLACK_AUTH_TOKEN environment variable to restrict access to the server.

About

Math rendering as a Slack integration via Wikimedia Mathoid.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages