Sending `foo_bar_baz` on matrix is shown as foo\_bar\_baz on discord
Discord allows single line code blocks
```foo``` sent on discord is displayed as a code block, but on matrix it's shown as inline code, as if `foo` was sent.
Discord allows closing code blocks on a nonempty line
```
foo
bar```
baz
displays as
foo
bar
baz
but on matrix, it's shown as
foo
bar```
baz
If the first line contains spaces, discord assumes it's not a language specifier
```foo bar
baz qux```
should be displayed as
foo bar
baz qux
but what's bridged is
baz qux```
Markdown features not supported by discord shouldn't be converted (discord->matrix direction)
I personally don't think it makes sense to convert something like + foo to a bullet point on matrix, the person sending it on discord almost certainly didn't intend it as such.
A few examples:
Discord doesn't need escaping inside inline code
Sending
`foo_bar_baz`
on matrix is shown asfoo\_bar\_baz
on discordDiscord allows single line code blocks
```foo```
sent on discord is displayed as a code block, but on matrix it's shown as inline code, as if`foo`
was sent.Discord allows closing code blocks on a nonempty line
displays as
but on matrix, it's shown as
If the first line contains spaces, discord assumes it's not a language specifier
should be displayed as
but what's bridged is
Markdown features not supported by discord shouldn't be converted (discord->matrix direction)
I personally don't think it makes sense to convert something like
+ foo
to a bullet point on matrix, the person sending it on discord almost certainly didn't intend it as such.