Merge pull request #3898 from acro5piano/main

fix: add suffix "md" when opening editor in InputOutput class
This commit is contained in:
paul-gauthier 2025-04-27 06:59:11 -07:00 committed by GitHub
commit 7d185bb710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -595,7 +595,7 @@ class InputOutput:
current_text = buffer.text
# Open the editor with the current text
edited_text = pipe_editor(input_data=current_text)
edited_text = pipe_editor(input_data=current_text, suffix="md")
# Replace the buffer with the edited text, strip any trailing newlines
buffer.text = edited_text.rstrip("\n")