Inconsistent micro-edit button behavior

The answer I got when I asked this internally was:

If Discourse can determine from the selected text without ambiguity exactly which text in the post is being edited, it’ll use the mini editor. Else it’ll use the full editor.