Text Removed In Code Block

Bear Version

  • macOS Version 2.6.1 (13751)

OS Version

  • macOS Version 2.6.1 (13751)

What Were You Doing

  • I was adding a Bear syntax command in code blocks to copy and paste to a message

What Feature Did You Use

  • Code block keyboard shortcut
  • Inline Code keyboard shortcut

What Happened

  • I used keyboard shortcuts to turn off the code options and the text within was removed

What Did You Expect To Happen

  • I wanted the text to stay while I changed the layout and formatting
  • See screen recording

This is the intended behavior. The text <!-- {"preview":"true"} --> is special metadata we use to display previews of attachments and links within the editor. It isn’t meant to appear outside of code blocks or away from attachments/links. That’s why, if you turn off the code block, the metadata is automatically removed from the note.

2 Likes

I had a feeling this would be the case for this scenario, but I wanted to check. Thanks!