Markdown and linkable section headers

[ad_1]

I was at blogspot and got tired of the limited and awkward functionality. I want to do my blog posts in markdown for ease and portability. In wordpress, doing an entire post inside a markdown block seems to be most of what I want. I think the biggest remaining thing is linkable section headers. I want to be able to link to headers in the markdown block with `[display text](#name-of-anchor-for-header)` but I have not figured out a way to do it.

I can’t do `# Linkable Section 1 {:#linkable-section-1}` like [this]) says. I can’t get embedded HTML to work, so `# Linkable Section 2<a name=”linkable_section_2″></a>` does not work. Section headers by themselves also do not generate ids to link to (unlike GitHub).

Doing a header block with a HTML anchor does work, but then that means interleaving markdown and non-markdown blocks, and I was hoping for pure markdown.

shows the results of my attempts.

How can I get linkable headers within a markdown block?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer