Playing with Markdown for code. It won't keep the line break in the code. Tried both 4 space indent and the three backspace.

using StringVec = td::vector<std::string>;
std::expected<StringVec, ErrorCode>

using StringVec = td::vector<std::string>;
std::expected<StringVec, ErrorCode>

```

using StringVec = td::vector<std::string>;
std::expected<StringVec, ErrorCode>

using StringVec = td::vector<std::string>;
std::expected<StringVec, ErrorCode>

```
@freemo

@rmerriam @freemo Do you mean

```
using StringVec = std::vector<std::string>;

std::expected<StringVec, ErrorCode> x;
std::expected<StringVec, ErrorCode> f();
```

I don't know how to see the "Markdown" source you tried. Mastodon's "Markdown" is pretty far from being Markdown but I have been able to get line breaks in code blocks.

@radehi

I tried it both with backticks and four spaces which are standard Markdown. Here is it without Markdown turned on:

```
using StringVec = std::vector<std::string>;

std::expected<StringVec, ErrorCode> ;
```

using StringVec = std::vector<std::string>;

std::expected<StringVec, ErrorCode> f();

Follow

@rmerriam Well, apparently it didn't work for me either this time; it ate my newlines! So I think it's pretty broken. @freemo help!

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.