iansinnott / prompta

ChatGPT UI that is keyboard-centric, mobile friendly, and searchable.
https://chat.prompta.dev
MIT License
154 stars 13 forks source link

Angle brackets incorrectly formatted #27

Closed struanb closed 7 months ago

struanb commented 8 months ago

Please see the // and the "" shown in this response. I suspected a formatting issue in Prompta and using await db.execO('select * from message;') believe I've been able to confirm this.

The actual text to be rendered was:

'Apologies for any confusion. "AutofillStates," "ClientSidePhishing," "DesktopSharingHub," and "OnDeviceHeadSuggestModel" are subfolders that generally belong to the Google Chrome browser profile directory.\n\nOn a Mac, you can find these folders within the Chrome profile directory located at:\n\n/Users/<your_username>/Library/Application Support/Google/Chrome/Profile/<profile_number>/\n\nPlease note that "<your_username>" should be replaced with your actual macOS username and "<profile_number>" represents a specific profile number associated with your Chrome user profile.'
image image
iansinnott commented 8 months ago

To confirm, it's displaying two // when there should only be one /, right?

iansinnott commented 8 months ago

The <profile> strings are interesting. Likely something to do with the markdown renderer I'm using

iansinnott commented 8 months ago

Note to self: can repro the tag issue in the console with:

insertPendingMessage({content: 'this is "<something>"'})
struanb commented 8 months ago

That's great, and I think the faulty tag rendering explains all the differences between the example input and output I gave.