Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent spacing #630

Open
ic-768 opened this issue Jul 18, 2024 · 1 comment
Open

Inconsistent spacing #630

ic-768 opened this issue Jul 18, 2024 · 1 comment

Comments

@ic-768
Copy link

ic-768 commented Jul 18, 2024

I am rendering some markdown, but the spacing between segments seems to be inconsistent.
Here's my code:

# Instructions

- **BUILD**
  - To build the app, navigate to `/backend` and run `npm run build`.
  - This should take care of  \***everything**\*  : installing dependencies, building the frontend and backend, and setting files up so that the backend and the electron app can both serve the frontend.


- **RUNNING THE APP IN THE BROWSER**
  - To run the app, use `npm run dev` from within `backend`.
    - The app will run on port `3000` by default.
    - The port and other default settings can be changed by editing `backend/config.ts`.


- **RUNNING THE ELECTRON APP**
  - Run `npm start` from within `electron`.
  - To edit default settings, you can edit the `settings.json` file in the app's default directory:
    - Linux - Either `$XDG_CONFIG_HOME/ocpi-candy` or `~/.config/ocpi-candy`
    - Windows - `%APPDATA%/ocpi-candy`
    - macOS - `~/Library/Application\ Support/ocpi-candy`

> **Note:** Because the web app lets users configure the settings directly in code, whereas the electron app exposes a JSON file in the app directory, the two `backend` directories have diverged and must be maintained separately.

and here's the actual rendered output:

image

as you can see, the BUILD section is stuck to RUNNING THE APP IN THE BROWSER, and the note at the bottom seems to have extraneous spacing over it

@MaximilianSoerenPollak
Copy link

You can just put '
' as a break/newline if you want to. That way you have a more precicse way to specify breaks.

- **BUILD**
 - To build the app, navigate to `/backend` and run `npm run build`.
 - This should take care of  \***everything**\*  : installing dependencies, building the frontend and backend, and setting files up so that the backend and the electron app can both serve the frontend.  

<br>

- **RUNNING THE APP IN THE BROWSER**
   - To run the app, use `npm run dev` from within `backend`.
       - The app will run on port `3000` by default.
       - The port and other default settings can be changed by editing `backend/config.ts`.  

<br>

- **RUNNING THE ELECTRON APP**
   - Run `npm start` from within `electron`.
   - To edit default settings, you can edit the `settings.json` file in the app's default directory:
       - Linux - Either `$XDG_CONFIG_HOME/ocpi-candy` or `~/.config/ocpi-candy`
       - Windows - `%APPDATA%/ocpi-candy`
       - macOS - `~/Library/Application\ Support/ocpi-candy`


> **Note:** Because the web app lets users configure the settings directly in code, whereas the electron app exposes a JSON file in the app directory, the two `backend` directories have diverged and must be maintained separately.

Then the output would look like this.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants