Closed Mara-Li closed 2 years ago
Hi,
I answer late because I had not found the time to really do tests with your versions etc .. Sorry.
At first sight, it seems to me, that the problem is related to your plugin "embed_file". Let me explain.
After installing your environment (same version), everything seems to work (in python 3.10.4) if I comment the following line in your configuration: - embed_file
.
The first impacting thing that I identified is a modification of the encrypt string created by mkdocs-encruptycontent-plugins.
As you can see in these two captures, when your plugins is activated, some spaces are added before and after the encrypted string. If you remove these spaces from the string, the encryption/decryption works as expected.
Without activating your plugin:
With the activation of your plugin:
Unfortunately, I don't have the detailed technical explanation of what is happening and why. I will have to study your code more and add some debug to find it.
Could you already validate the operation of my plugin in version 3.10.4 WITHOUT your plugins ? No problem for me once removed.
The problem comes more exactly from the use of the "prettify()" function in this part of your code which as described in the BS4 documentation here, adds whitespace (in the form of newlines).
THank your for this report, I will take a look !
Thanks, I could found the two culprit!
Hello! I try this plugin, but can't make it work using
mkdocs serve
in a local testing with :My configuration :
My testing file :
I copy/pass the password and the page keeps sending me
invalid password
.