to implement an offline md editor