convert func spec to MD format