Canvas to markdown file

I’ve been using canvas feature frequently. My usual work process is discussing with Gemini to write down a detailed plan and then use it as a blueprint and code with my coding assistant tool.

So I need to copy contents (detailed plan) in canvas and make it as markdown file in my repo. I found “Copy contents” button, but it copies contents without proper formatting (new lines and indentations). I believe it is friendly enough for my coding assistant tool, but it is not for me.

I was wondering if there is any simple trick to copy the contents and format, exactly same as shown in canvas, into markdown file. It seems other AI services have it but Gemini doesn’t.

2 Likes

Just ran into this same issue and worked around it by telling Gemini to place the Markdown source in a textarea on an HTML page. I could then view the rendered page and copy the source from the textarea.

2 Likes

Thanks for the tip! However I found the extension doesn’t work very well for markdown file includes json block or code block inside.

I really hope someone adds an export function. Normal chat response can be copied well with markdown format anyway.

1 Like

Select ‘Export to Docs’ from the share icon in canvas. When it opens in Google Docs, ‘File → Download → Markdown (.md)’

2 Likes