typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 56 forks source link

Math copy as HTML/image in Math block doesn't work, nothing is copied #542

Closed frankyan closed 7 years ago

frankyan commented 7 years ago

I found that Math->Copy as HTML/image doesn't work in Math Block, where nothing is copied. Copy as Tex also doesn't work. But Copy as MathML works. The following is an example.

$$
\mathit{3x^2 \in R \subset Q} \\ \int_{0}^{100}3x^2d
$$

However, using inline Math, the copy function works. For example:

$$\mathit{3x^2 \in R \subset Q} \\ \int_{0}^{100}3x^2dx$$

Besides, is there any convenient way to decode and convert the copied Base64 coded SVG to image?

System: Windows 10 64bit Typora: 0.9.23beta 64bit

norux commented 7 years ago

macOS also, with some different point. In macOS, Math->Copy as HTML/image copy some image's URI data (starting data:image/svg+xml;base64,DATA...)

But I think it is wrong data. I only can see '?' box.

2017-05-08 10 01 28

macOS 10.12.3(16D32) Typora 0.9.9.9.4.2 (0.9.9.9.4.2)

orschiro commented 7 years ago

I cannot even find this Math->Copy as HTML/image on Linux.

In which sub-menu is it?

norux commented 7 years ago

@orschiro , You can find mouse right-click over Math block

image Screenshot on macOS, but same in linux.

orschiro commented 7 years ago

I might be doing something wrong then...

image

norux commented 7 years ago

Sorry. Exacty not in Math block. Should be mathematic image.

  1. uncheck View->Source Code Mode
  2. focus-out in Math block. then mathematic image will be created.
  3. right-click over image.
orschiro commented 7 years ago

Sorry, I still don't get it.

Can you please look at this screencast?

https://youtu.be/UVGXv0Ev2ew

norux commented 7 years ago

Write another paragraph and try again. :)

orschiro commented 7 years ago

image

norux commented 7 years ago

Please see my youtube. https://youtu.be/IBjA8rUbIEA I reproduced in Ubuntu 16.04 LTS

And I found same issue on Linux. Nothing is copied.

Typora version: 0.9.29 (beta)

orschiro commented 7 years ago

@norux thanks for trying Ubuntu.

In this case, I have no idea why it's not working for me...

typora/now 0.9.29-1 amd64 [installed,local]
Ubuntu 17.04 MATE
abnerlee commented 7 years ago

Close since copy as HTML/Image on math is not supported in current version.