Fix multiple annotation template rendering - #53
Conversation
This fixes nunjucks template rendering of multiple annotations. Default template would cause omitting original highlights that specific annotations were describing and just rolling them under the first user highlight in the text. Signed-off-by: Radek Kozak <radoslaw.kozak@gmail.com>
|
Hi, Second: i spotted weird thing when annotating an article. Got few of annotations but with default template they would roll under only one & the same highlight - even though they belonged to different ones. This could be very misleading for users of the plugin as one could think the plugin itself is not parsing all of data provided by Hypothes.is API. I checked - underlying data was ok right until the moment it was put through Nunjuck template provided. See attached screenshots as what it would all look like when rendered before & after With this PR:
Cheers |
|
Thanks alot mate |
|
You got it. Thanks again for the nice plugin. Cheers |


This fixes nunjucks template rendering of multiple annotations.
Default template would cause omitting original highlights that specific annotations were describing and just rolling them under the first user highlight in the text.
Signed-off-by: Radek Kozak <radoslaw.kozak@gmail.com