Change the relation between InlineParser and Document