trigaten / Learn_Prompting

Prompt Engineering, Generative AI, and LLM Guide by Learn Prompting | Join our discord for the largest Prompt Engineering learning community
https://learnprompting.org
Other
4.26k stars 633 forks source link

Copy code adds ,[object Object] #1061

Closed niebag closed 1 year ago

niebag commented 1 year ago

https://learnprompting.org/docs/basics/prompting#1-summarizing-an-article

Copying the follwing prompt text from 1) Summarizing an Article adds ",[object Object]" instead of "Summarize this paragraph in a single sentence:"

Expected:

It is very rare for snow to fall in the U.S. state of Florida, especially in the central and southern portions of the state. With the exception of the far northern areas of the state, most of the major cities in Florida have never recorded measurable snowfall, though trace amounts have been recorded, or flurries in the air observed few times each century. According to the National Weather Service, in the Florida Keys and Key West there is no known occurrence of snow flurries since the European colonization of the region more than 300 years ago. In Miami, Fort Lauderdale, and Palm Beach there has been only one known report of snow flurries observed in the air in more than 200 years; this occurred in January 1977. In any event, Miami, Fort Lauderdale, and Palm Beach have not seen snow flurries before or since this 1977 event.
Summarize this paragraph in a single sentence:

Copy code result:

It is very rare for snow to fall in the U.S. state of Florida, especially in the central and southern portions of the state. With the exception of the far northern areas of the state, most of the major cities in Florida have never recorded measurable snowfall, though trace amounts have been recorded, or flurries in the air observed few times each century. According to the National Weather Service, in the Florida Keys and Key West there is no known occurrence of snow flurries since the European colonization of the region more than 300 years ago. In Miami, Fort Lauderdale, and Palm Beach there has been only one known report of snow flurries observed in the air in more than 200 years; this occurred in January 1977. In any event, Miami, Fort Lauderdale, and Palm Beach have not seen snow flurries before or since this 1977 event.
,[object Object]
trigaten commented 1 year ago

Thank you, im looking into this.

trigaten commented 1 year ago

Im a bit stuck on this. In order to make this work properly, I believe I need CodeBlock-like logic, but Im having this problem with CodeBlock: https://github.com/facebook/docusaurus/issues/9240

Ill keep looking into this :)

niebag commented 1 year ago

No hurry!

It's not something that bothered me but thought it would've been notable :)

trigaten commented 1 year ago

Alright, I did some reversing of MDX parsing, and it seems to be fixed in the newest build.