resolves #697 honor reftext defined in embedded section title anchor

- also register id for block even if reftext and title are empty