87 lines
2.5 KiB
Plaintext
87 lines
2.5 KiB
Plaintext
#md_help.modal.hidden
|
||
.modal-header
|
||
%button.close{"aria-hidden" => "true", "data-dismiss" => "modal", :type => "button"} ×
|
||
%h3#myModalLabel=t('layout.comments.md_cheatsheet_header')
|
||
.modal-body
|
||
.mod
|
||
.col
|
||
%h3=t 'layout.comments.md_cheatsheet.format_text'
|
||
%p=t 'layout.comments.md_cheatsheet.headers'
|
||
%pre
|
||
-[1, 3, 6].each do |i|
|
||
="#{'#'*i} This is an <h#{i}> tag"
|
||
%p=t 'layout.comments.md_cheatsheet.text_styles'
|
||
%pre
|
||
:preserve
|
||
*This text will be italic*
|
||
_This will also be italic_
|
||
**This text will be bold**
|
||
__This will also be bold__
|
||
.col
|
||
%h3=t 'layout.comments.md_cheatsheet.lists'
|
||
%p=t 'layout.comments.md_cheatsheet.unordered'
|
||
%pre
|
||
:preserve
|
||
* Item 1
|
||
* Item 2
|
||
* Item 2a
|
||
* Item 2b
|
||
%p=t 'layout.comments.md_cheatsheet.ordered'
|
||
%pre
|
||
:preserve
|
||
1. Item 1
|
||
2. Item 2
|
||
3. Item 3
|
||
* Item 3a
|
||
* Item 3b
|
||
.col
|
||
%h3=t 'layout.comments.md_cheatsheet.miscellaneous'
|
||
%p=t 'layout.comments.md_cheatsheet.images'
|
||
%pre
|
||
:preserve
|
||
![avatar](/assets/ava.png)
|
||
Format: ![Alt Text](url)
|
||
%p=t 'layout.comments.md_cheatsheet.links'
|
||
%pre
|
||
:preserve
|
||
https://abf.rosalinux.ru
|
||
[ABF](https://abf.rosalinux.ru/)
|
||
%p=t 'layout.comments.md_cheatsheet.blockquotes'
|
||
%pre
|
||
:preserve
|
||
As Kanye West said:
|
||
|
||
> We're living the future so
|
||
> the present is our past.
|
||
.both
|
||
%hr.bootstrap
|
||
%h3=t 'layout.comments.md_cheatsheet.code_examples'
|
||
.col
|
||
%p
|
||
=t 'layout.comments.md_cheatsheet.syntax_highlighting'
|
||
%pre
|
||
:preserve
|
||
```javascript
|
||
function fancyAlert(arg) {
|
||
if(arg) {
|
||
$.facebox({div:'#foo'})
|
||
}
|
||
}
|
||
```
|
||
.col
|
||
%p=t 'layout.comments.md_cheatsheet.indent_code'
|
||
%pre
|
||
:preserve
|
||
Here is a Python code example
|
||
without syntax highlighting:
|
||
|
||
def foo:
|
||
if not bar:
|
||
return true
|
||
.col
|
||
%p=t 'layout.comments.md_cheatsheet.inline_code'
|
||
%pre
|
||
:preserve
|
||
I think you should use an
|
||
`[addr]` element here instead.
|