Question

I'm trying to make a website with Jekyll, but everytime I use #something to get a first level heading tag of <h1>something</h1>, instead I get <h1 id=something>something</h1>

What am I doing wrong?

Was it helpful?

Solution 2

well, let me give myself some sort of answer. apparently if I add this to my markdown file:

{::options auto_ids="false" /}

then auto id generation turns off. I'm using Kramdown as a parser.

OTHER TIPS

A better bet would be to put the option into your _config.yml file, then you don't need to include it in every markdown file. For kramdown you'd need to include:

kramdown:
  auto_ids: false

Source: http://jekyllrb.com/docs/configuration/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top