lean2/doc/lua/md2lua.sh
Leonardo de Moura 972721006e doc(lua): add main file for Lua API documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 12:42:50 -08:00

5 lines
160 B
Bash
Executable file

#!/usr/bin/awk -f
BEGIN{ in_block = 0 }
!/```/{ if (in_block == 1) print $0; else print "" }
/```/{ in_block = 0; print "" }
/```lua/{ in_block = 1; print "" }