From ea21bd915a8211dd49d381b879f0ec1caec7332c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 8 Aug 2020 15:42:12 -0300 Subject: _config.yml: Add line numbers only to code blocks The 'line_numbers: true' option enables line numbering for all code blocks, including inline ones. Instead I want line numbering just for code blocks. --- _config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 9d623e8..dbde8cd 100644 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,10 @@ author: markdown: kramdown # default markdown renderer for Jekyll kramdown: syntax_highlighter_opts: - line_numbers: true + span: + line_numbers: false + block: + line_numbers: true exclude: - Gemfile -- cgit v1.2.3