makeplane / makeplane/plane

[bug]: Code block collapses with hashtags

Open
#5,866 1 comment 0 reactions 2 assignees View on GitHub

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
  1. Create an issue
  2. Create a code block
  3. 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"
  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.