Skip to content

Commit c09efc8

Browse files
committed
Version 2.3.1
1 parent 3a0a950 commit c09efc8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Install the package from source with pip:
5959
```bash
6060
cd mkdocs-encryptcontent-plugin/
6161
python3 setup.py sdist bdist_wheel
62-
pip3 install dist/mkdocs_encryptcontent_plugin-2.3.0-py3-none-any.whl
62+
pip3 install dist/mkdocs_encryptcontent_plugin-2.3.1-py3-none-any.whl
6363
```
6464

6565
Enable the plugin in your `mkdocs.yml`:

encryptcontent/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ def on_post_page(self, output_content, page, config, **kwargs):
389389
if isinstance(item['style'], list):
390390
item['style'].append("display:none")
391391
else:
392-
item['style'] = item['class'] + "display:none"
392+
# if style contains a single element (str)
393+
item['style'] = item['style'] + "display:none"
393394
else:
394395
item['style'] = "display:none"
395396
output_content = str(soup)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def read(fname):
1111

1212
setup(
1313
name='mkdocs-encryptcontent-plugin',
14-
version='2.3.0',
14+
version='2.3.1',
1515
author='CoinK0in',
1616
author_email='[email protected]',
1717
description='A MkDocs plugin that encrypt/decrypt markdown content with AES',

0 commit comments

Comments
 (0)