Make sure to assign parent by reference.
Improve handling of opening/closing elements.
Make sure leading whitespace is removed.
Improve handling of hard/soft breaks and horizontal rules.
Improve handling of (un)ordered lists.
Fix handling of blockquotes.