Fix parseImageInput to handle shell-escaped \! in markdown image refs#22
Merged
Fix parseImageInput to handle shell-escaped \! in markdown image refs#22
Conversation
Some shells escape "!" to "\!" even in single-quoted strings, causing the markdown image reference parser to fail to recognize the  syntax. The entire escaped string was then treated as a file path, producing the error "image file not found: \". Strip the leading backslash when the input starts with \syntax. The entire escaped string was then treated as a file path,
producing the error "
image file not found: \".Strip the leading backslash when the input starts with
\![beforeattempting to parse as a markdown image reference.
https://claude.ai/code/session_01BqcPiZ39GE4j4ZhvHVFyZ8