File: mdcat.lua

package info (click to toggle)
lua-torch-sundown 0~20160829-g17ea705-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 324 kB
  • ctags: 310
  • sloc: ansic: 3,543; sh: 75; makefile: 9
file content (4 lines) | stat: -rw-r--r-- 133 bytes parent folder | download | duplicates (2)
1
2
3
4

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