summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-03-21 16:23:09 +0100
committerTomas Mraz <tomas@openssl.org>2022-03-23 09:11:32 +0100
commitfb2cd91f27d0cc0bbf1883dd188788016165a458 (patch)
treead247adae2537ad5aab40b31836ab16549e174cd /util
parenta0238b7ed87998c48b1c92bad7fa82dcbba507f9 (diff)
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 <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17933)
Diffstat (limited to 'util')
-rw-r--r--util/markdownlint.rb5
1 files changed, 3 insertions, 2 deletions
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'