function createInline(pattern, starAlternative) {
		pattern = pattern.replace(/<inner>/g, inner);
		if (starAlternative) {
			pattern = pattern + "|" + pattern.replace(/_/g, "\\*");
		}
		return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")");
	}
This function is intended for the creation of the bold or italic pattern.

This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.

_Note:_ Keep in mind that this adds a capturing group.

@param {string} pattern
@param {boolean} starAlternative Whether to also add an alternative where all `_`s are replaced with `*`s.
@returns {RegExp}