'Bookmark reference'

def s_text_bookmark_ref(self, tag, attrs):

    name = attrs[(TEXTNS, 'ref-name')]
    html_id = ('#' + self.get_anchor(name))
    self.writedata()
    self.opentag('a', {'href': html_id})
    self.purgedata()
