shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.45k stars 173 forks source link

使用sequence-diagrams的hand theme无法显示中文 #1545

Open czhiling opened 6 years ago

czhiling commented 6 years ago

thank you very much for developing MPE for atom。

I got a problem, the preview (also in browser) Chinese characters cannot be shown correctly in sequence-diagrams with "hand" theme (I am using Mac+Atom):

image

It seems it works in sequence-diagrams online editor。 image

By the way, is it possible for me to change the default font in MPE for sequence-diagrams?

szacchino commented 6 years ago

It seems to be a limitation of sequence-diagram.js library: the library uses Cufon style fonts as explained here https://github.com/bramp/js-sequence-diagrams/blob/master/README.md...currently don't know if you can import other fonts through markdown.

czhiling commented 6 years ago

Thanks for the help. It seems the sequence-diagrams online editor can handle the characters correctly. What's the reason?

shd101wyy commented 6 years ago

maybe it's because the library that this extension is using is out of date.

czhiling commented 6 years ago

thanks! Is there anything I can do for working around?