-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Description
Expected Behavior
markdown-insert-bold and similar functions should always result in a legal formatting of the text, even if the selection/markers included a space at the beginning or end. [EDIT] This could be achieved by jumping to the next "legal" beginning of a formatting.
Actual Behavior
When selecting text to then do C-c C-s … (e.g. markdown-insert-bold), it easily happens that accidentally the selection begins with a space instead of the first character of the text. Then the text is not formatted, and one has to manually move the space outside.
Eg.
this is* a selection* of two words
this is *a selection* of two wordsSteps to Reproduce
- select a string so that it begins with space
- hit
C-c C-s b - the resulting text is not bold.
Backtrace
Software Versions
markdown-mode, version 2.5-dev
GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels