Open iSOLveIT opened 2 years ago
@aiudirog added this feature. There is a test for it in this commit
https://github.com/tardyp/sphinx-jinja/commit/5a794e07693c280cb3d7df34097164b95a143185
maybe this can help you to understand how it is supposed to be used.
Ok will check it out. Thanks
I am having a problem with implementing custom jinja filters for my sphinx documentation. This is what the code I added in my
conf.py
according to the sphinx-jinja documentation:extensions = ['sphinx_jinja']
jinja_filters = { 'bold': lambda value: f'**{value}**', }
The filter is not applied when I build the documentation and I get this error instead:
Reason: TemplateAssertionError("No filter named 'bold'.")
I hope you can help me figure out what I am doing wrong. Thanks