Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
At first, thank you for this plugin. So I would like to propose a very small code change.
In my template, I needed the ability to modify objects of one annotation based on others. Specifically, I have special annotations corresponding to terms, and based on them, I modify the text of adjacent annotations, turning the highlighted terms within them into links.
For this scenario, I needed the ability to actually modify objects. This is possible in Jinja, but as described in the issue, Nunjucks does not support this functionality. Therefore, I decided to add the very simple filter suggested in the comments on the issue.
I understand that the scenario I described is probably quite rare. However, the code changes themselves are minimal, and it might enable someone to implement similar or even more interesting export variations. I tried to provide a brief but illustrative explanation of the use case in the documentation update.
What do you think?