modified apl to use markdown