Add HCL/Terraform support via CodeMirror in fenced code block#6302
Merged
nathanlesage merged 4 commits intoApr 25, 2026
Merged
Conversation
…age mapping and language auto-complete in fenced code block
|
Thank you for opening your first PR! 🎉 We would like to thank you already for your contribution. If everything checks out, we'll make sure to review the PR as soon as possible and give feedback. Please note a few things:
We are glad for every improvement that makes its way into the app, so we look forward to collaborating on merging this PR. |
Member
|
Looks good, thank you! |
|
Your PR got merged! Welcome to the party! 🔥 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds HCL/Terraform fenced code block support in the markdown parser and updates code block autocomplete to suggest both hcl and terraform.
Changes
markdown-parser.tsusing Codemirror-lang-hcl and mapped both hcl and terraform selectors to the same HCL languageBreaking API changes: none.
Additional information
Terraform syntax is based on HCL, so both fence names are highlighted through the same CodeMirror language support.
Tested on: Cachyos Rolling and macOS Tahoe (26.04.1)