[merge addon] Support passing in document objects as content