New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math in docstrings #225
Comments
There is! I have just pushed an example to examples/math, does that do what you were looking for? 😃 |
Good catch, that can be confusing here. I've added an explanation to https://pdoc.dev/docs/math/math_demo.html 😃 |
@mhils I saw the explanation but I still cannot see formulas being rendered (same problem described above). The math.html.jinja2 file linked there says "MathJax by default does not define $ as a math delimiter because it's commonly used in non-mathematical settings. We add it here." Currently, when using |
@abubelinha: This issue predates the current builtin implementation. You need to run
|
Ah ... I see. |
So the answer (for my own record) is: import pdoc
pdoc.render.configure(math=True)
pdoc.pdoc( ... whatever ...) Thanks a lot !! |
Maybe I am missing something. Is there a way to make pdoc render tex math formulas? My docstrings contain a lot of them.
Formulas like this:
$\frac{x}{1}
Cheers
The text was updated successfully, but these errors were encountered: