Markdown JS with two protocols

Are you running behind a reverse proxy? Have you set force_https on the settings?