From 7567cae964b05fbe4ccc5286f1590df3e6ab8f3f Mon Sep 17 00:00:00 2001 From: Dmytro Shteflyuk Date: Sun, 29 Sep 2024 14:00:39 -0400 Subject: [PATCH] Added empty lines around YAML code fences --- bin/docs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/docs b/bin/docs index a5c93727..cf50f19f 100755 --- a/bin/docs +++ b/bin/docs @@ -70,6 +70,7 @@ class DocWriter generate_line(line, heading: place == :new_section) place = :in_section else + output.puts output.puts "```yaml" output.puts line place = :in_yaml @@ -77,6 +78,7 @@ class DocWriter when :in_yaml, :in_empty_line_yaml if line =~ /^ *#/ output.puts "```" + output.puts generate_line(line, heading: place == :in_empty_line_yaml) place = :in_section elsif line.empty?