explicitly mention document mode in docstring

This commit is contained in:
thxo 2021-04-09 14:05:08 -07:00
parent ff5de8abc0
commit 6407bd8bc3
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@ class TexCog(commands.Cog):
@commands.command(name="tex", aliases=["latex"], category=cmn.Cats.UTILS)
async def tex(self, ctx: commands.Context, *, expr: str):
"""Renders a LaTeX expression."""
"""Renders a LaTeX expression.
In document mode by default. To render math, add `$` around math expressions.
"""
payload = {
"format": "png",
"code": self.template.replace("#CONTENT#", expr),