Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mdcat.lua - github.com/torch/sundown-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3f075bcc43bb89e98293e1f94f1b9397c26f8ad (plain)
1
2
3
4
5
#!/usr/bin/env lua

local ascii = require 'sundown.ascii'
assert(#arg == 1, 'usage: mdcat <file.md>')
print(ascii.render(io.open(arg[1]):read('*all')))