Can I link to a section of my page written in Markdown?
-
I have a few pages written in Markdown that I would like to publish on wordpress.com. They look nice, except that link anchors written like
<a id="somename" />or<a name="somename" />are rendered as page content when I preview the page rather than becoming link targets. It seems that WordPress does not process HTML inside Markdown.Is there a way to link to sections of my page when I use Markdown? Alternatively, is there an automatic method to convert Markdown pages to native WordPress HTML?
-
Hi there!
Are you using the Markdown Block for those pages?
https://wordpress.com/support/wordpress-editor/blocks/markdown-block/
-
Thanks!
Yes, exactly. According to the documentation, inline HTML should be supported, but the line
is not processed but appears on the finished page.To show you the effect, I added one inline HTML item to https://tamingthecloud.wordpress.com/2020/11/13/kubernetes-on-devstack-part-1-deploying-the-devstack-cloud. I also created screenshots of the Markdown code and the preview, see https://imgur.com/a/BvQdMoK.
I double-checked: Markdown for posts is enabled.
-
-
This forum post editor is hopeless. No preview, no way to edit a post. Or is there? I am trying again.
According to the documentation, inline HTML should be supported, but the line
<a name="server"></a>is not processed but appears on the finished page.To show you the effect, I added one inline HTML item to https://tamingthecloud.wordpress.com/2020/11/13/kubernetes-on-devstack-part-1-deploying-the-devstack-cloud. I also created screenshots of the Markdown code and the preview, see https://imgur.com/a/BvQdMoK.
I double-checked: Markdown for posts is enabled.
-
Hm, that’s odd. One quick clarification, while the Markdown Block has _improved_ inline HTML support, it doesn’t mean we support _all_ inline HTML yet.
With that said though, is there any improvemend if you use
id=instead ofname=?
- The topic ‘Can I link to a section of my page written in Markdown?’ is closed to new replies.