mardown preview need access to variables