pub fn inline_rule(
text: &str,
caret: usize,
) -> Option<(Range<usize>, Range<usize>, Mark)>Expand description
A closing inline delimiter just typed, and the run it closes.
The inline half of the same vocabulary shortcut covers: typing the last
* of **bold** makes it bold because pasting **bold** would have.
Returns the opening delimiter’s range and the text between it and the caret;
the closing delimiter is inner.end..caret.