obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

MD formatting - Codeblock at the start of a message when Save as Note

Open drehak opened this issue 8 months ago • 0 comments

  • [x] Disable all other plugins besides Copilot (required)
  • [x] Screenshot of note + Copilot chat pane + dev console added (required)

Copilot version: 2.8.8

Describe how to reproduce When a chat message starts with a code block and the chat is saved as a note, the note contains a line with **user**: ``` (plus the optional syntax type, if it was provided). This breaks the display of subsequent Markdown.

Expected behavior Triple backticks that start a chat message should be saved on a new line.

Screenshots

Image

Additional context Obsidian v1.8.9. Here's the output note in hopes it will be helpful: 20250409_143636__Testing._ding_ding_ding.md

This might also affect other block elements (headings, tables etc.). I haven't tried those, but in general, I guess the code block is probably encountered far more often in chats.

drehak avatar Apr 09 '25 13:04 drehak