Not Working with Jekyll CommonMark
Hi @xplosionmind, I switched to Commonmark and it's working for me. Hope this helps:
- Demo site
- _config.yml for commonmark options
- Gemfile add
gem 'jekyll-commonmark-ghpages'
I used the Github Pages version because it supports Github Flavored Markdown, which helps keep things consistent with the formatting. Plus it enables Github-flavored tables and works with Obsidian!
Thanks folks. What do we think about switching the template to Commonmark by default? This way it would offer a standardized experience for the majority of use cases.
@maximevaillancourt I like Commonmark for most cases, but I found one interesting drawback: You can no longer use {: .internal-link} notation to add classes or IDs. It looks like this is a Kramdown feature. It doesn't bother me too much since I'm OK switching to HTML classes for this use case.. but if someone has a lot of these links in their site they'll have to go manually update them after fetching upstream
The main issue presented by Commonmark, in my opinion, is definitely the lack of auto-generation of ids for headings.
See this related issue.