From b95a23395fec9e5652b3b82bcabe19b5029c3a0f Mon Sep 17 00:00:00 2001 From: Eric Lapouyade Date: Sat, 12 Mar 2022 18:31:03 +0100 Subject: [PATCH] fix #422 --- docs/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index 29835f3..df937f3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -222,6 +222,10 @@ Instead of using ``RichText()``, one can use its shortcut : ``R()`` you do not specify a style in ``RichText()``, the style will go back to a microsoft word default style. This will affect only character styles, not the paragraph styles (MSWord manages this 2 kind of styles). +**Important** : ``RichText`` objects are rendered into xml *before* any filter is applied +thus ``RichText`` are not compatible with Jinja2 filters. You cannot write in your template something like ``{{r |lower }}``. +Only solution is instead to do any filtering into your python code when creating the ``RichText`` object. + Hyperlink with RichText +++++++++++++++++++++++