prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Dark theme does not properly adjust markdown tables
  ### Summary
  
  When I load the latest streamlit in darkmode I cannot see anything in my markdown tables because the text color is changed but not the background color.
  
  ### Steps to reproduce
  
  Code snippet:
  
  ```
  md = """
  | Label     | Info        |
  | -------- | --------- |
  | Row       | Data      |
  """
  st.markdown(md)
  ```
  
  **Expected behavior:**
  
  I would expect if the text color get changed to white in the table, the background color should get changed to something dark
  
  **Actual behavior:**
  
  Both the text color and background are white so nothing can be seen.
  
  ### Is this a regression?
  
  no, consequence of new theme
  
  ### Debug info
  
  - Streamlit version: 0.79.0
  - Python version: 3.7.9
  - pip
  - OS version: MacOS Catalina 10.15.7
  - Browser version: Chrome 89.0.4389.90
  
  ### Additional information
  
  I'm not sure why markdown tables have different background style but they seem to; perhaps other ui elements would be affected as well.
  
  
  </issue>
  <code>
  [start of e2e/scripts/st_markdown.py]
  1 # Copyright 2018-2021 Streamlit Inc.
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #    http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 import streamlit as st
  16 
  17 st.markdown("This **markdown** is awesome! :sunglasses:")
  18 
  19 st.markdown("This <b>HTML tag</b> is escaped!")
  20 
  21 st.markdown("This <b>HTML tag</b> is not escaped!", unsafe_allow_html=True)
  22 
  23 st.markdown("[text]")
  24 
  25 st.markdown("[link](href)")
  26 
  27 st.markdown("[][]")
  28 
  29 st.markdown("Inline math with $\KaTeX$")
  30 
  31 st.markdown(
  32     """
  33 $$
  34 ax^2 + bx + c = 0
  35 $$
  36 """
  37 )
  38
  [end of e2e/scripts/st_markdown.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/e2e/scripts/st_markdown.py b/e2e/scripts/st_markdown.py
  --- a/e2e/scripts/st_markdown.py
  +++ b/e2e/scripts/st_markdown.py
  @@ -35,3 +35,11 @@
   $$
   """
   )
  +
  +st.markdown(
  +    """
  +| Col1      | Col2        |
  +| --------- | ----------- |
  +| Some      | Data        |
  +"""
  +)
  
verification_info: {"golden_diff": "diff --git a/e2e/scripts/st_markdown.py b/e2e/scripts/st_markdown.py\n--- a/e2e/scripts/st_markdown.py\n+++ b/e2e/scripts/st_markdown.py\n@@ -35,3 +35,11 @@\n $$\n \"\"\"\n )\n+\n+st.markdown(\n+    \"\"\"\n+| Col1      | Col2        |\n+| --------- | ----------- |\n+| Some      | Data        |\n+\"\"\"\n+)\n", "issue": "Dark theme does not properly adjust markdown tables\n### Summary\r\n\r\nWhen I load the latest streamlit in darkmode I cannot see anything in my markdown tables because the text color is changed but not the background color.\r\n\r\n### Steps to reproduce\r\n\r\nCode snippet:\r\n\r\n```\r\nmd = \"\"\"\r\n| Label     | Info        |\r\n| -------- | --------- |\r\n| Row       | Data      |\r\n\"\"\"\r\nst.markdown(md)\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nI would expect if the text color get changed to white in the table, the background color should get changed to something dark\r\n\r\n**Actual behavior:**\r\n\r\nBoth the text color and background are white so nothing can be seen.\r\n\r\n### Is this a regression?\r\n\r\nno, consequence of new theme\r\n\r\n### Debug info\r\n\r\n- Streamlit version: 0.79.0\r\n- Python version: 3.7.9\r\n- pip\r\n- OS version: MacOS Catalina 10.15.7\r\n- Browser version: Chrome 89.0.4389.90\r\n\r\n### Additional information\r\n\r\nI'm not sure why markdown tables have different background style but they seem to; perhaps other ui elements would be affected as well.\r\n\n", "before_files": [{"content": "# Copyright 2018-2021 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#    http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport streamlit as st\n\nst.markdown(\"This **markdown** is awesome! :sunglasses:\")\n\nst.markdown(\"This <b>HTML tag</b> is escaped!\")\n\nst.markdown(\"This <b>HTML tag</b> is not escaped!\", unsafe_allow_html=True)\n\nst.markdown(\"[text]\")\n\nst.markdown(\"[link](href)\")\n\nst.markdown(\"[][]\")\n\nst.markdown(\"Inline math with $\\KaTeX$\")\n\nst.markdown(\n    \"\"\"\n$$\nax^2 + bx + c = 0\n$$\n\"\"\"\n)\n", "path": "e2e/scripts/st_markdown.py"}]}