fixed a bug in markdup; updated docs