cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
579 stars 7 forks source link

Hiccup conversion on paste is occasionally too keen #2936

Open cursive-ide opened 1 month ago

cursive-ide commented 1 month ago

Sometimes when pasting code that is obviously not HTML, Cursive will offer to convert it to hiccup, mistakenly taking it for HTML. This seems to be because the IntelliJ HTML parser is more permissive than I expected. This issue serves to collect examples so that the checking can be made more robust.

cursive-ide commented 2 weeks ago

Here's an example:

{:role "user", :content "<translation_notes>"}

However, this has to be copied from somewhere outside the current IDE, otherwise it knows the content type of the paste buffer.

cursive-ide commented 1 week ago

Another:

(println "Write me a simple fibonacci function in Clojure. Don't use an artifact. \n\nWhen you are done, extract a 2-4 word topic from this chat. Put  the topic of this chat in a <chat_topic> tag, but summarize the topic (both the original request and your reply) in 3-5 words. Even if it's not a complete sentence, capitalize the first letter of the first word unless it's some odd anomaly like \"iPhone\".")