That should probably be a FileType autocommand instead, and match `markdown`.
It is rather tricky to setup the CR mapping, because existing maps should get handled / forwarded.
Take a look at how endwise handles it. I have just submitted a PR to improve upon it: https://github.com/tpope/vim-endwise/pull/50/files