From fb2cd91f27d0cc0bbf1883dd188788016165a458 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 21 Mar 2022 16:23:09 +0100 Subject: 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) --- util/markdownlint.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/markdownlint.rb b/util/markdownlint.rb index 64a82e3684..159bf20870 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' -- cgit v1.2.3