Coder Social home page Coder Social logo

sahansk2 / spoilerlatexbot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 613 KB

Put in spoiler'd LaTeX, get out spoiler'd LaTeX

License: GNU Affero General Public License v3.0

TypeScript 75.16% HTML 9.21% JavaScript 14.45% CSS 1.19%
discord discord-bot discord-js latex spoiler

spoilerlatexbot's Introduction

spoilerlatexbot's People

Contributors

sahansk2 avatar

Stargazers

 avatar

Watchers

 avatar

spoilerlatexbot's Issues

Support mixing spoilers and LaTeX spoilers

I got $|| \frac{3}{4} || but ||I might be dumb||

fails: it should capture \frac{3}{4} but it captures \frac{3}{4} all the way to dumb.

Todo:

  • Create a test case for this in expressions.spec.ts
  • Fix the issue by utilizing non-greedy regex.

The bot breaks on long LaTeX expressions

y(t) = \frac{0}{\sqrt{0}}cos(t+\frac{\pi}{0}-tan^{0}(0) + \frac{0.0}{\sqrt{000}}cos(0t + \frac{0\pi}{0} - tan^{-0}(\frac{-00}{00})) + \frac{0.0}{\sqrt{0000000}}cos(00t + \frac{0\pi}{0} - tan^{-0}(\frac{-000}{0000}))

Fails to render, originally sent by Liseiden. (All digits replaced with 0).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.