npiv / chatblade

A CLI Swiss Army Knife for ChatGPT
GNU General Public License v3.0
2.58k stars 92 forks source link

Removed formatting on latex comments to prevent % characters from removing lines of text #97

Closed danielj-n closed 2 months ago

danielj-n commented 2 months ago

I noticed some requests with percentages ended up with blanks in them.

Because of latex parsing, any text following % is considered a comment and removed.

I think the obvious fix is to just not parse latex comments, which is provided with a simple option on the latex parser. I don't think parsing comments adds any functionality since it just removes output.

Before:

image

After

image
npiv commented 2 months ago

Thx!