Plugin "Markdown Advanced Preview"

Plugins for SynWrite and CudaText...
hzh
Posts: 7
Joined: 24.08.2025 15:56

Plugin "Markdown Advanced Preview"

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

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

EDIT by Alexey 26/Aug/2026:
new plugin "Markdown Advanced Preview" is made, and is published in the addons-manager.
main Alexey
Posts: 3214
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: 3214
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)
hzh
Posts: 7
Joined: 24.08.2025 15:56

Re: Markdown math supports

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

Re: Markdown math supports

Post 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.
Last edited by main Alexey on 20.08.2026 17:21, edited 1 time in total.
main Alexey
Posts: 3214
Joined: 25.08.2021 18:15

Re: Markdown math supports

Post by main Alexey »

correction of my above comment.
you _can_ attach zip with plugin here. if you don't want to make github page.
hzh
Posts: 7
Joined: 24.08.2025 15:56

Re: Markdown math supports

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

Re: Markdown math supports

Post by main Alexey »

such page does not exist. on github.
hzh
Posts: 7
Joined: 24.08.2025 15:56

Re: Markdown math supports

Post by hzh »

My mistake, I forgot to make the repository public. It should be available now. Thanks!
main Alexey
Posts: 3214
Joined: 25.08.2021 18:15

Re: Markdown math supports

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