Separate markdown parsing into base class and ipynb-specific class.