Browse Source

code review

Falko Schindler 2 years ago
parent
commit
4aa27f8e59
2 changed files with 1 additions and 3 deletions
  1. 1 1
      nicegui/elements/markdown.py
  2. 0 2
      website/reference.py

+ 1 - 1
nicegui/elements/markdown.py

@@ -45,7 +45,7 @@ class Markdown(ContentElement):
             self.update()
 
 
-@lru_cache(maxsize=int(os.environ.get('MARKDOWN_CONTENT_CACHE_SIZE', ('1000'))))
+@lru_cache(maxsize=int(os.environ.get('MARKDOWN_CONTENT_CACHE_SIZE', '1000')))
 def prepare_content(content: str, extras: str) -> str:
     html = markdown2.markdown(content, extras=extras.split())
     return apply_tailwind(html)  # we need explicit markdown styling because tailwind CSS removes all default styles

+ 0 - 2
website/reference.py

@@ -810,8 +810,6 @@ This is used in our [authentication demo](https://github.com/zauberzeug/nicegui/
 
 You can set the following environment variables to configure NiceGUI:
 
-- `HOST`: Alternative to specify the host address (normally via `ui.run(host=...)`).
-- `PORT`: Alternative to specify the port (normally via `ui.run(port=...)`).
 - `MATPLOTLIB` (default: true) can be set to `false` to avoid the potentially costly import of Matplotlib. This will make `ui.plot` and `ui.line_plot` unavailable.
 - `MARKDOWN_CONTENT_CACHE_SIZE` (default: 1000): The maximum number of Markdown content snippets that are cached in memory.
 ''')