Zim

Comment 14 for bug 239854

Revision history for this message
Frank Uebel (fuebel) wrote :

As links are also defined by tags, we currently can not have bold links, as it seems. I was playing with code like this:
buffer = textview.get_buffer()
tag = buffer.create_link_tag(word, pagename)
buffer.apply_tag(tag, start, end)
That works, as long as there is only plain text there to begin with. If there is already a formatting (bold, underline, etc) on these words, at first, it is rendered correcly (link in bold!), but as a refresh of the page kicks in, the whole line, starting from the link-tag, is deleted. Deleting the text first and then inserting a completely new link works and creates a regular href in the bold text, but the href itself is not rendered in bold.
I did not look into this yet, what exactly happens internally, but it might just be a simple problem with the parser, that prevents combined tags.
My 2ct, though.