fix development mode and add terraform support #1
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.
This PR does three things: fixes development mode and adds language support for Terraform (two parts to this).
Development mode
Running locally without
postsPerPage
being specified in your config you get a blank screen when you go to http://localhost:3000This specifies that config (and a couple of other properties) which resolves the blank screen issue.
Language support
You need to specify the languages that you're using if they're outside the list of commonly used languages: https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js
This PR adds support for CSharp, PowerShell (which you're not using yet but it seems plausible) and Terraform (which you are)
terraform
->hcl
Confusingly, Terraform is coded as
hcl
. This PR migrates to use that code.PrismJS/prism#1252
PrismJS/prism#1594