Closed Boxylmer closed 1 year ago
Thank you very match for catching.
As you mentioned, it doesn't work with carbon chain now. Fortunately setatomhighlight!
(in draw/svg.jl) only depends on canvas.fontsize setting and atom position, so a possible workaround is just to remove isatomvisible_[i] || continue
(so also isatomvisible_ = isatomvisible(substr)
seems unnecessary).
If it works, I would appreciate If you would like to make a pull request.
I've never actually done that before! I'll give it a shot. Thanks for the response!
Fantastic! Looks like the issue is solved.
MWE:
Notice that indices 3 and 24 were not highlighted due to them not spanning an edge, nor having an element symbol present to highlight.
Would it be worthwhile to add some code to cover this edge case? I'm not familiar with how setting highlights works to know it's easy to set it for only a junction here.