Minimal Mistake – Enabling code block line number with markdown

less than 1 minute read

By adding the following configuration in _config.yml file, we can see the code block line number

1
2
3
4
kramdown:
  syntax_highlighter_opts:
    block:
      line_numbers: true

Categories:

Updated: