Tidying up based on first contact with R maintainers.
[rnaseq-cwl-training.git] / bin / markdown_ast.rb
1 #!/usr/bin/env ruby
2
3 # Use Kramdown parser to produce AST for Markdown document.
4
5 require "kramdown"
6 require "json" 
7
8 markdown = STDIN.read()
9 doc = Kramdown::Document.new(markdown)
10 tree = doc.to_hash_a_s_t
11 puts JSON.pretty_generate(tree)