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

github.com/torch/sundown-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mdcat.lua')
-rw-r--r--mdcat.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdcat.lua b/mdcat.lua
new file mode 100644
index 0000000..c3f075b
--- /dev/null
+++ b/mdcat.lua
@@ -0,0 +1,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')))