문제

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?

도움이 되었습니까?

해결책 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.

다른 팁

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top