change markdown engine and add debug tool