From 40e4ca60ea5bdd754195928f8bf6efe76b6f315d Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 6 Sep 2024 15:32:26 -0700 Subject: [PATCH] specs_generation.md: update kramdown command line coderay was extracted from the core and the options removed in 2.0.0. See: https://github.com/gettalong/kramdown/commit/49e1b12f5264734e8957ca447679dd8583e923c6 Change-Id: I5191dcec296ba4bcde5f0bcbc46d1e1135d40ec2 --- doc/specs_generation.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/specs_generation.md b/doc/specs_generation.md index 0380d664..f9722698 100644 --- a/doc/specs_generation.md +++ b/doc/specs_generation.md @@ -17,10 +17,11 @@ rubygems will install automatically. The following will apply inline CSS styling; an external stylesheet is not needed. ```shell -$ kramdown doc/webp-lossless-bitstream-spec.txt --template \ - doc/template.html --coderay-css style --coderay-line-numbers ' ' \ - --coderay-default-lang c > \ - doc/output/webp-lossless-bitstream-spec.html +$ kramdown doc/webp-lossless-bitstream-spec.txt \ + --template doc/template.html \ + -x syntax-coderay --syntax-highlighter coderay \ + --syntax-highlighter-opts "{default_lang: c, line_numbers: , css: style}" \ + > doc/output/webp-lossless-bitstream-spec.html ``` Optimally, use kramdown 0.13.7 or newer if syntax highlighting desired.