Parse inline content until a specific token type.
When endType is "PARAGRAPH_BREAK", handles NEWLINEs and stops at:
Parse inline content until a specific token type.
When endType is "PARAGRAPH_BREAK", handles NEWLINEs and stops at: