在github标记中嵌入openstreetmap iframe

在github标记中嵌入openstreetmap iframe,iframe,openstreetmap,github-flavored-markdown,Iframe,Openstreetmap,Github Flavored Markdown,从openstreetmap页面上的共享选项卡,我可以将地图视图导出为HTML,例如: <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=6.047544479370118%2C46.23053702499607%2C6.061706

从openstreetmap页面上的共享选项卡,我可以将地图视图导出为HTML,例如:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=6.047544479370118%2C46.23053702499607%2C6.061706542968751%2C46.23821801159735&amp;layer=mapnik" style="border: 1px solid black"></iframe>
<br/><small><a href="https://www.openstreetmap.org/#map=17/46.23438/6.05463">View Larger Map</a></small>
我是否遗漏了一些东西,或者这是一个更好的东西,留给真正的HTML,而不是markdown可以/应该做的事情?

GFM不支持 不支持将
嵌入GitHub风味标记(GFM)中。以下是官方对此的立场:

6.11不允许的原始HTML(扩展)

GFM启用tagfilter扩展,其中在呈现HTML输出时,将过滤以下HTML标记:

[…]这些标记特别是在它们改变HTML的解释方式时被选中[…],这在其他呈现的降价内容的上下文中通常是不需要的

所有其他HTML标记保持不变


可能的解决办法 与中提到的视频解决方案类似,您可以嵌入地图的屏幕截图,并将其作为指向OSM地图部分URL的链接:

相关
# how to find us?

we will be here:
<figure class="video_container">
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=6.047544479370118%2C46.23053702499607%2C6.061706542968751%2C46.23821801159735&amp;layer=mapnik" style="border: 1px solid black"></iframe>
</figure>