projects
/
rnaseq-cwl-training.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove software carpentries logo
[rnaseq-cwl-training.git]
/
bin
/
markdown_ast.rb
1
#!/usr/bin/env ruby
2
# frozen_string_literal: true
3
4
# Use Kramdown parser to produce AST for Markdown document.
5
6
require 'kramdown'
7
require 'json'
8
9
markdown = $stdin.read
10
doc = Kramdown::Document.new(markdown)
11
tree = doc.to_hash_a_s_t
12
puts JSON.pretty_generate(tree)