Fixing dark code text in light mode

This commit is contained in:
ZhymabekRoman 2024-02-21 21:12:03 +06:00
parent 674bae53f8
commit 59ebd21c44

View file

@ -511,7 +511,7 @@ def parse_markups(markups: list):
elif markup["type"] == "EM":
template = "<em>{{text}}</em>"
elif markup["type"] == "CODE":
template = "<code class='p-1 dark:bg-gray-600'>{{text}}</code>"
template = "<code class='p-1 bg-gray-300 dark:bg-gray-600'>{{text}}</code>"
else:
logger.error(f"Unknown markup type: {markup}")
continue