From: Richard Levitte Date: Mon, 21 Mar 2022 15:23:09 +0000 (+0100) Subject: util/markdownlint.rb: Allow fenced code blocks X-Git-Tag: openssl-3.2.0-alpha1~2821 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb2cd91f27d0cc0bbf1883dd188788016165a458;p=thirdparty%2Fopenssl.git util/markdownlint.rb: Allow fenced code blocks We use both indented and fenced styles in diverse markdown files. We try to do this consistently in each file, though. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17933) --- diff --git a/util/markdownlint.rb b/util/markdownlint.rb index 64a82e36848..159bf20870e 100644 --- a/util/markdownlint.rb +++ b/util/markdownlint.rb @@ -5,8 +5,9 @@ all # Use --- and === for H1 and H2. rule 'MD003', :style => :setext_with_atx -# Code blocks are indented -rule 'MD046', :style => :indented +# Code blocks may be fenced or indented, both are OK... +# but they must be consistent throughout each file. +rule 'MD046', :style => :consistent # Bug in mdl, https://github.com/markdownlint/markdownlint/issues/313 exclude_rule 'MD007'