MarkdownOutlook
MarkdownOutlook copied to clipboard
Not support source code syntax highlight?
I tried the markdown for source code
and table
, but both of them get no rendering.
You can do code fencing with backticks but you cannot specify the language for syntax highlighting :(
It doesn't process "code blocks" (triple-backticks) properly. For instance:
```
x = 1
y = 2
```
translates to x = 1 y = 2
(no newlines). Furthermore, it continues to parse md-like text within the code blocks:
```
# this is a comment
x = 1
```
The comment becomes a header.
I suspect that it isn't considering triple-backticks special at all; in fact, if you replace all triple-backticks above with single-backticks, it behaves identically, suggesting that in the triple, the first two open/close the block with no apparent effect.
I am not actively working on this but I will accept/review PRs.
It supports code blocks now, but it would also good if it supports language-specific code blocks, such as ```sh
. Or at least, gracefully switch language-specific blocks to plain code blocks ( ```sh
does not work, it should at least make the text monospaced).