Skip to content

Commit

Permalink
Add .livemd extension to Markdown language (#5672)
Browse files Browse the repository at this point in the history
* Add `.livemd` extension to `Markdown` language

* Correct order

Co-authored-by: Colin Seymour <colin@github.com>
  • Loading branch information
nallwhy and lildude authored May 25, 2022
1 parent 124e6b3 commit 7503f75
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3705,6 +3705,7 @@ Markdown:
wrap: true
extensions:
- ".md"
- ".livemd"
- ".markdown"
- ".mdown"
- ".mdwn"
Expand Down
22 changes: 22 additions & 0 deletions samples/Markdown/livebook.livemd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- livebook:{"persist_outputs":true} -->

# Sample Livebook

## Section

### Markdown

Notebooks are .livemd files, a subset of Markdown with support for equations and annotations.

<!-- livebook:{"livebook_object":"cell_input","name":"plus","type":"number","value":"1"} -->

```elixir
{plus, _} = IO.gets("plus") |> Integer.parse()

[1, 2, 3]
|> Enum.map(&(&1 + plus))
```

```output
[2, 3, 4]
```

0 comments on commit 7503f75

Please sign in to comment.