patch pic and tweak markdown