瀏覽代碼

#876 code review

Falko Schindler 2 年之前
父節點
當前提交
661b0a1368
共有 2 個文件被更改,包括 5 次插入8 次删除
  1. 0 2
      nicegui/static/nicegui.css
  2. 5 6
      website/more_documentation/markdown_documentation.py

+ 0 - 2
nicegui/static/nicegui.css

@@ -77,12 +77,10 @@
   padding: 1rem 1rem 0.5rem 1rem;
   margin: 1rem 0;
 }
-
 .nicegui-markdown th {
   padding: 0.5rem;
   border: 1px solid #8884;
 }
-
 .nicegui-markdown td {
   padding: 0.5rem;
   border: 1px solid #8884;

+ 5 - 6
website/more_documentation/markdown_documentation.py

@@ -41,14 +41,13 @@ def more() -> None:
         ''')
 
     @text_demo('Markdown tables', '''
-        By activating the "tables" extra, you can use markdown tables.
+        By activating the "tables" extra, you can use Markdown tables.
         See the [markdown2 documentation](https://github.com/trentm/python-markdown2/wiki/Extras#implemented-extras) for a list of available extras.
     ''')
     def markdown_with_code_blocks():
         ui.markdown('''
-        | First name | Last name |
-        | ---------- | --------- |
-        | Max        | Planck    |
-        | Marie      | Curie     |
-
+            | First name | Last name |
+            | ---------- | --------- |
+            | Max        | Planck    |
+            | Marie      | Curie     |
         ''', extras=['tables'])