modify markdown trigger method