source 'https://rubygems.org'
-git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
+git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
# Synchronize with https://pages.github.com/versions
ruby '>=2.7.1'
#!/usr/bin/env ruby
+# frozen_string_literal: true
# Use Kramdown parser to produce AST for Markdown document.
-require "kramdown"
-require "json"
+require 'kramdown'
+require 'json'
-markdown = STDIN.read()
+markdown = $stdin.read
doc = Kramdown::Document.new(markdown)
tree = doc.to_hash_a_s_t
puts JSON.pretty_generate(tree)