Hello Ilya, Mapbox embedded maps and Ghost is working fine for me.
I think the code you’re linking to is more or less straight from the Mapbox examples collection. Just pasting that into the post won’t work. There are instruction in the Mapbox documentation (“embed your map”), but they’re not well advertised and kind of hard to find, it took me a good while to get it right also. Do like this:
You add your code to your post starting from the
div id='map'></div> part and all the way down to
</script> .Important: you have to give the dimensions for the div like “height: 200, width: 100%” or you will get nothing.
Then you add the following part (only) to the code injection, either at the post or whole site level:
<link href='https://api.mapbox.com/mapbox.js/v3.2.1/mapbox.css' rel='stylesheet' />
that should be it.