Page 1 of 1

Markdown math supports

Posted: 24.08.2025 15:59
by hzh
Hi everyone!

I'd like to ask how to config the plugin markdown preview?
It can't support any math formula after installation and I don't find any related configuration (json) like sublime?

Thanks very much :D :D

Re: Markdown math supports

Posted: 26.08.2025 06:52
by main Alexey
this plugin has options-like Python file, which configs which extensions will be compiled.
cuda_markdown_options.py

maybe some extension "for math" exists? it may be big sized, because maybe will need TeX/LaTeX, especially for Windows.
post here small MD file with math.

Re: Markdown math supports

Posted: 26.08.2025 20:32
by main Alexey
plugin uses Python-Markdown lib, which is from:
https://Python-Markdown.github.io/
guess, we need to read description of this lib, and find how to use math there. this lib gives API to convert markdown to HTML:

Code: Select all

import markdown
from .cuda_markdown_options import ext  

md = markdown.Markdown(extensions=ext)  
html_text = md.convert(document_text)