Frage

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?

War es hilfreich?

Lösung 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.

Andere Tipps

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/

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top