FlowFuse / FlowFuse/website

Website does not render indented code as a code block

Open
#1,594 2 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
Vue
Stars
23
Forks
19
Avg merge
2d 5h
Merged PRs (30d)
146

Description

### Current Behavior

Indented code is not correctly rendered as code block

### Website
![image](https://github.com/FlowFuse/flowfuse/assets/44235289/a3e83c82-7422-4d1d-88fe-0b2a6931a883)

### VSCode
![image](https://github.com/FlowFuse/flowfuse/assets/44235289/fe221fed-705a-4264-8811-dcb965f905cb)

### GitHub
![image](https://github.com/FlowFuse/flowfuse/assets/44235289/7cbcfb36-deda-49c8-927c-feb446443b49)

### Quick fix

change the section to:

##### Testing against PostgreSQL

By default, the tests use an in-memory sqlite database to test against. This is
the most self-contained way of testing the platform. But it is also necessary to
test against PostgreSQL. To enable the use of PostgreSQL in the tests:

1. Ensure you have an instance of PostgreSQL running locally. For example, via docker:
```bash
docker run -it -p 5432:5432 --name ff-postgres -e POSTGRES_PASSWORD=secret postgres:14
```

2. Enable PostgreSQL mode by setting the following environment variable:
```bash
export FF_TEST_DB_POSTGRES=true
```

The database connection can be set using the following env vars (default values shown)
```bash
export FF_TEST_DB_POSTGRES_HOST=localhost
export FF_TEST_DB_POSTGRES_PORT=5432
export FF_TEST_DB_POSTGRES_USER=postgres
export FF_TEST_DB_POSTGRES_PASSWORD=secret
export FF_TEST_DB_POSTGRES_DATABASE=flowforge_test
```
```

### Expected Behavior

As per MD spec, indented text should render as a code block

### Steps To Reproduce

visit and look at the section **Testing against PostgreSQL**

Look at the exports all regular (non code/monospaced) text and wrapped (no line breaks)

### Environment

_No response_

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.