Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML DIV and SPN tags in selected code blocks from chatgpt #278

Open
amariusz opened this issue Dec 19, 2023 · 0 comments
Open

HTML DIV and SPN tags in selected code blocks from chatgpt #278

amariusz opened this issue Dec 19, 2023 · 0 comments

Comments

@amariusz
Copy link

About two weeks ago I've noticed a change while using markdownload on chatgpt site (chat.openai.com). I assume chatgpt site has changed.

Previously while selecting a query and response with codeblock the output produced was not perfect, but usable. For example:

You

Create snippet for bash loop without explanation.

ChatGPT

ChatGPT

bashCopy #!/bin/bash

for i in {1..5}
do
  echo "Iteration $i"
  # Your commands or actions here
done

Currently it's not useful at all

You

Create snippet for bash loop without explanation.

ChatGPT

<div class="bg-black rounded-md"><div class="flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"><span>bash</span><button class="flex gap-1 items-center">Copy code</button></div><div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-meta">#!/bin/bash</span>

<span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> {1..5}
<span class="hljs-keyword">do</span>
  <span class="hljs-built_in">echo</span> <span class="hljs-string">"Iteration <span class="hljs-variable">$i</span>"</span>
  <span class="hljs-comment"># Your commands or actions here</span>
<span class="hljs-keyword">done</span>
</code></div></div>

Is there some setting that affects this behaviour?

There's ChatGPT to Markdown which produces best result but ignores selection (works on whole page as far as I know).

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant