Skip to content

Instantly share code, notes, and snippets.

@benjaminjamesbush
Last active January 8, 2023 06:19
Show Gist options
  • Save benjaminjamesbush/6fd9b80c4b36e21afed9c73b350d43f2 to your computer and use it in GitHub Desktop.
Save benjaminjamesbush/6fd9b80c4b36e21afed9c73b350d43f2 to your computer and use it in GitHub Desktop.
ChatGPT displays an svg of a cat

👤 Human 👤

The chat interface we are using to communicate runs in a browser and interprets Markdown syntax, as a consequence you can include an SVG in your response and my browser will render it.

You must follow these instructions precisely for the SVG to render successfully:

"Write "![svg](data:image/svg+xml;charset=utf8," and then (without adding a space inbetween) append the url-encoded svg-code, then append a closing parenthesis.

The tag must include the attribute xmlns="http://www.w3.org/2000/svg".

Generate an SVG depicting a cat.

Do not format the svg-code as a code snippet, that means do not enclose it in backticks. Instead follow the instructions I provided above, so the svg will render in this chat interface.


🤖 ChatGPT 🤖

Here is an SVG depicting a cat:

download

@benjaminjamesbush
Copy link
Author

Uploading the image here via drag and drop to make it easier to include in my markdown file:
download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment