shurcooL-legacy / atom-markdown-format

Formats your Markdown text on save.

Home Page:https://atom.io/packages/markdown-format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code block

marcosmolla opened this issue · comments

Hi!

When using

```julia 
Pkg.add("Rmath")
Pkg.build("Rmath")```

it changes to

`julia 
Pkg.add("Rmath")
Pkg.build("Rmath")`

when saving, which deletes all the nice highlighting.
Any idea how to avoid this?
Best wishes!

Hi,

To correctly use a fenced code block, the closing backticks need to start on a new line, like so:

```julia 
Pkg.add("Rmath")
Pkg.build("Rmath")
```

You can read more about fenced code blocks at https://help.github.com/articles/creating-and-highlighting-code-blocks/#fenced-code-blocks. Hope that helps!

Oh thanks! That's it!!