mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
switched langs table from html -> md
This commit is contained in:
parent
e4c637724f
commit
4fba17c18b
2 changed files with 61 additions and 114 deletions
|
@ -517,13 +517,16 @@ def get_random_color():
|
|||
def get_supported_languages_md():
|
||||
from grep_ast.parsers import PARSERS
|
||||
|
||||
res = ""
|
||||
res = """
|
||||
| Language | File extension |
|
||||
|:--------:|:--------------:|
|
||||
"""
|
||||
data = sorted((lang, ex) for ex, lang in PARSERS.items())
|
||||
for lang, ext in data:
|
||||
res += "<tr>"
|
||||
res += f'<td style="text-align: center;">{lang:20}</td>\n'
|
||||
res += f'<td style="text-align: center;">{ext:20}</td>\n'
|
||||
res += "</tr>"
|
||||
res += f"| {lang:20} | {ext:20} |\n"
|
||||
|
||||
res += "\n"
|
||||
|
||||
return res
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue