From 6407bd8bc3d1aaa76fc1affabf8909dea64ea4ee Mon Sep 17 00:00:00 2001 From: thxo Date: Fri, 9 Apr 2021 14:05:08 -0700 Subject: [PATCH] explicitly mention document mode in docstring --- exts/tex.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exts/tex.py b/exts/tex.py index 6093f36..fe52691 100644 --- a/exts/tex.py +++ b/exts/tex.py @@ -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),