Mogan v1.2.9.2: copy and paste GPT generated contents

Using the copy button provided by ChatGPT and then pasting-in the contents by cmd+v in Mogan v1.2.9.7 under macOS 14.7.5. produces a mostly nicely formatted document. Thanks for implementing this copy&paste feature.

As pointed out by @darcy and @fmvp742637 in this thread, the imported math code is somewhat flawed as invisible multiply signs (*) for two consecutive letters (R*g) and some spaces in formulas (5*cos θ) are removed and converted to Rg and 5cosθ.

ChatGPT formats the math/LaTeX correctly, and the correct LaTeX formatting is kept even after button-copying the answer. This can be seen when you paste-in the buffer by Paste form → LaTeX. So the errors seem to creep in when Mogan’s markdown converter starts messing with the LaTeX code.

I wonder if it’s possible to prevent the markdown converter from spoiling the LaTeX math code. Maybe it’s even feasible to implement a file menu option like Paste form → Markdown/preserve LaTeX math in order to address this issue.

Besides, I noticed another interesting feature while pasting ChatGPT answers by pressing cmd+v. The markdown converter inserts strange looking "r"s in front of and sometimes also after <math|> and other markup instructions like <strong|> or <em|>. As I could not copy the character into “search and replace” I had to remove them by hand.

Hope, these issues can be fixed.

Cheers, Tilda

1 Like