Org reader: Precise rules for the recognition of markup

Inline parsing has been rewritten using the org source code as a
reference.  This fixes a couple of bugs related to erroneous markup
recognition.