Skip to content

Commit 32ab0d1

Browse files
maxim-belkinfmichonneau
authored andcommitted
Fix Ruby style
1 parent ca16e0b commit 32ab0d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org'
44

5-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
5+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

77
# Synchronize with https://pages.github.com/versions
88
ruby '>=2.7.1'

bin/markdown_ast.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
# Use Kramdown parser to produce AST for Markdown document.
45

5-
require "kramdown"
6-
require "json"
6+
require 'kramdown'
7+
require 'json'
78

8-
markdown = STDIN.read()
9+
markdown = $stdin.read
910
doc = Kramdown::Document.new(markdown)
1011
tree = doc.to_hash_a_s_t
1112
puts JSON.pretty_generate(tree)

0 commit comments

Comments
 (0)