You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice if sqlfmt would support formatting SQL code blocks in Markdown files. In the context of dbt, this would also be very beneficial. We put a lot of example queries in our documentation and it would be amazing if they followed the same style.
Before
# Some title
Some text
```sqlSELECT*FROMsome.table```
After
# Some title
Some text
```sqlselect*fromsome.table```
In terms of requirements, I think limiting to sql blocks within .md files would be enough.
The text was updated successfully, but these errors were encountered:
I think we'd support this by installing a markdown parser as an extra (e.g., mistletoe or marko), iterating through the code blocks in the AST, and replacing their contents.
Right now we ignore .md files, but that can be changed via config.
It would be really nice if
sqlfmt
would support formatting SQL code blocks in Markdown files. In the context of dbt, this would also be very beneficial. We put a lot of example queries in our documentation and it would be amazing if they followed the same style.Before
After
In terms of requirements, I think limiting to
sql
blocks within.md
files would be enough.The text was updated successfully, but these errors were encountered: