Split out the markdown editor logic into seperate components to provide a more orgranised heirachy with feature-specific files.