astronomer / ask-astro

An end-to-end LLM reference implementation providing a Q&A interface for Airflow and Astronomer
https://ask.astronomer.io/
Apache License 2.0
196 stars 47 forks source link

Add syntax highlighting for better readability #216

Open dpatlut opened 11 months ago

dpatlut commented 11 months ago

Describe the bug Currently, when Ask Astro returns code, it does not give it any different highlighting or color than the regular text it returns (other than being bolded). This makes it harder to parse and understand.

Version

To Reproduce Steps to reproduce the behavior:

  1. Run Ask-Astro website
  2. Ask it to return any code for a DAG
  3. See output

Expected behavior Python syntax highlighted a different color

Screenshots

Screen Shot 2023-12-18 at 11 10 55 AM

Additional context N/A