Fenced code blocks and line numbers

9 views
Skip to first unread message

Graham Wheeler

unread,
Aug 13, 2017, 3:15:16 PM8/13/17
to nikola-discuss
Hi all

I am using Nikola with markdown rather than restructured text.

I notice if I use 4 space indentation for code blocks I get line numbers but if I use fenced code blocks with ``` there are no line numbers.

My preference is fenced but I want line numbering. Is there a way to configure this?

Thanks
Graham

Chris Warrick

unread,
Aug 14, 2017, 10:16:38 AM8/14/17
to Nikola—Discuss
You would have to configure the CodeHilite Markdown extension to
always use line numbering. Unfortunately, I don’t think there’s
support for Markdown extension config options. Please create an issue
on GitHub for that.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16
Reply all
Reply to author
Forward
0 new messages