Added section explaining Markdown support

The inline markdown via `markdown:` is one my favorite features. I'm not certain if it exists in all uses of Slim, but I haven't seen otherwise.
This commit is contained in:
Allan White 2018-02-28 14:10:35 -08:00 committed by Rico Sta. Cruz
parent d62e80ec69
commit f366a8edfa
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 13 additions and 0 deletions

13
slim.md
View File

@ -60,6 +60,18 @@ ruby:
div= foobar
```
### Inline Markdown
```jade
markdown:
### On Markdown
Slim can handle your [Markdown](https://daringfireball.net/projects/markdown/syntax) content for longer content blocks or `code`.
Depending on your parser, like [Kramdown](https://kramdown.gettalong.org/quickref.html), other features might work, like assigning attributes or classes.
{: .classname}
```
### Embedded JavaScript
```jade
@ -67,6 +79,7 @@ javascript:
alert('Slim supports embedded javascript!')
```
### Comments
```jade