knatten / cppquiz23

Repo for porting the questions on cppquiz.org to C++23

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extra newlines before quotes that start with code blocks

tocic opened this issue · comments

I was testing the formatting on a local server and found the following strange behaviour:

image

This extra newline is added in cases when we start a quote with a 5-spaced code block (e.g., 284, 297, 339). There's no such problem if the code block is in the middle of a quote (e.g., 323).

If we try to use backticks, e.g.

> ```
> R future::get();
> R& future<R&>::get();
> void future<void>::get();
> ```

, then there's no newline but the code is not highlighted. It's displayed as a set of individual lines, not a code block:

image

Looks like backticked code blocks are not rendered correctly everywhere, not only in quotes 😢:

image

We should either fix this problem or replace all the occurrences with 4-spaced code blocks.

I agree! I've created knatten/cppquiz#345 for this. I think we should look into that before continuing the porting, instead of going over all the questions again and switching to indentation.