최대 1 분 소요

kramdown 설명

  • 블로그 초보의 입장에서 퍼와서 만든 jekyll 블로그 설정상 markdown conversion이 kramdown으로 되어 있다면, kramdown의 설정에서 highligher 기능으로 line_number를 아래와 같이 줄 수 있다.

_config.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
# Markdown Processing
kramdown:
  input: GFM
  hard_wrap: false
  auto_ids: true
  footnote_nr: 1
  entity_output: as_char
  toc_levels: 1..6
  smart_quotes: lsquo,rsquo,ldquo,rdquo
  enable_coderay: false
  syntax_highlighter_opts:
    block:
      line_numbers: true

댓글남기기