Markdown math supports

Plugins for SynWrite and CudaText...
Post Reply
hzh
Posts: 1
Joined: 24.08.2025 15:56

Markdown math supports

Post 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
main Alexey
Posts: 2706
Joined: 25.08.2021 18:15

Re: Markdown math supports

Post 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.
main Alexey
Posts: 2706
Joined: 25.08.2021 18:15

Re: Markdown math supports

Post 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)
Post Reply