[bug]: Code block collapses with hashtags
Open
Nobody has claimed this yet.
🐛bug
pages
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When I want to give an overview over used ENV Variables in a code-block within an issue, the code block removes hashtags and newlines on save which ruins the formatting. It would be nice to be able to add comments to allow for better readability.
Steps to reproduce
- Create an issue
- Create a code block
- Enter the following:
### FastAPI ###
ENVIRONMENT="development"
BASEPATH_PREFIX="/v1"
API_KEY="TestKey"
### Signature ###
KEY_ID="key-hmac-sha256"
SECRET_KEY="<SECRET_KEY>"
### File serving ###
ALLOW_FILE_SERVING=1
FILE_SERVING_ROOT="/tmp/media"
- Wait for save
Once it saves, it becomes the following:
### FastAPI ###
ENVIRONMENT="development"
BASEPATH_PREFIX="/v1"
API_KEY="TestKey"
SignatureKEY_ID="key-hmac-sha256"
SECRET_KEY="<SECRET_KEY>"File servingALLOW_FILE_SERVING=1
FILE_SERVING_ROOT="/tmp/media"
All the hashtags after the first line are removed, and newlines are removed.
Environment
Production
Browser
Google Chrome
Variant
Self-hosted
Version
v0.20.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.