Page 1 of 2

Plugin "Markdown Advanced Preview"

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

-----------------

EDIT by Alexey 26/Aug/2026:
new plugin "Markdown Advanced Preview" is made, and is published in the addons-manager.

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)

Re: Markdown math supports

Posted: 20.08.2026 15:01
by hzh
Hi Alexey, sorry for my late response. I find it is not easy to directly configure the current markdown preview plugin. But thanks to chatgpt, I transplant sublime's markdown preview.

I'm a hobbyist developer. In fact, I finished this task within a night. Generally, I'm satisfied with the effect of the new plugin.

I'd like to ask if I can share the plugin publicly? I'm really afraid of the copyright and other risks. In addition, the sublime's markdown preview is under MIT license.

Thank you very much!

Re: Markdown math supports

Posted: 20.08.2026 16:26
by main Alexey
if you mean this plugin: https://github.com/facelessuser/MarkdownPreview
then it is under MIT license, so we can modify it and share (AFAIK). if we share under MIT license (AFAIK).
so your work is AI-modified version if that plugin. so share it on github under MIT license. it will be ok (AFAIK).
include the detailed readme/readme.txt, pls. about how to use and configure your plugin.

Re: Markdown math supports

Posted: 20.08.2026 17:22
by main Alexey
correction of my above comment.
you _can_ attach zip with plugin here. if you don't want to make github page.

Re: Markdown math supports

Posted: 22.08.2026 15:33
by hzh
Hi Alexey, I have share my plugin on github: https://github.com/He-Zihao/Markdown_Advanced_Preview
Could you please let me know if you encounter any issues or have any further feedback?
Thank you so much for your comments and suggestions!

Re: Markdown math supports

Posted: 22.08.2026 17:17
by main Alexey
such page does not exist. on github.

Re: Markdown math supports

Posted: 23.08.2026 03:06
by hzh
My mistake, I forgot to make the repository public. It should be available now. Thanks!

Re: Markdown math supports

Posted: 23.08.2026 04:39
by main Alexey
Very good, at 1st sight. As I see in readme.md, it uses MathJax from online CDN. can it be downloaded into plugin folder, pls, if it is not very big (< 2-10 MB)? cudatext plugins should be local-first. should work on offline PCs.