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

Follow

@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();

@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
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.