parsers.lua

Sat, 10 Nov 2012 04:02:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 10 Nov 2012 04:02:30 +0000
changeset 18
a96836139ff9
parent 12
4c759312950b
permissions
-rwxr-xr-x

parsers.markdown: Make module callable, to allow parsing text as a module

parsers = {};

function parsers.text(text)
	--FIXME: HTML-escape
	return text;
end

local markdown = require "jorvick.parsers.markdown"
function parsers.markdown(text)
	return markdown(text);
end


local textile = require "jorvick.parsers.textile"
function parsers.textile(text)
	return textile(text);
end

return parsers;

mercurial