diff --git a/etc/ebook/build-pdf.rb b/etc/ebook/build-pdf.rb index 62ce16117..4bc5432d2 100644 --- a/etc/ebook/build-pdf.rb +++ b/etc/ebook/build-pdf.rb @@ -84,7 +84,7 @@ def build_chapter chapter_data # Update for Ruby 3.2 # chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md") - chapter_front_matter = YAML.unsafe_load_file("../../_chapters/#{chapter_name}.md") + chapter_front_matter = YAML::load(File.read("../../_chapters/#{chapter_name}.md")) ################# # Validations