mirror of
https://github.com/miaowware/qrm2.git
synced 2025-07-04 09:05:15 -04:00
explicitly mention document mode in docstring
This commit is contained in:
parent
ff5de8abc0
commit
6407bd8bc3
@ -28,7 +28,10 @@ class TexCog(commands.Cog):
|
|||||||
|
|
||||||
@commands.command(name="tex", aliases=["latex"], category=cmn.Cats.UTILS)
|
@commands.command(name="tex", aliases=["latex"], category=cmn.Cats.UTILS)
|
||||||
async def tex(self, ctx: commands.Context, *, expr: str):
|
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 = {
|
payload = {
|
||||||
"format": "png",
|
"format": "png",
|
||||||
"code": self.template.replace("#CONTENT#", expr),
|
"code": self.template.replace("#CONTENT#", expr),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user