retain DOM root and container separately and fix img typo
retain DOM root and container separately and fix img typo

mitaki28/commonmark-live-preview,mitaki28/commonmark-dom-creator,mitaki28/commonmark-live-preview