Fix Ruby style
[rnaseq-cwl-training.git] / bin / markdown_ast.rb
index c3fd0b5e2982319b5c1f6f85358572d52bef5235..4fdb684344a5fe8d4c725e5a65df93d2cf0bbd58 100755 (executable)
@@ -1,11 +1,12 @@
 #!/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)