Adding further handling to double up inline markup when preceded or foll...

...owed by non-whitespace character. The preceding test sometimes matches more inlines than necessary for doubling up, but this shouldnt cause any problems, as its still valid markup.