Update more layouts

This commit is contained in:
Rico Sta. Cruz 2017-09-20 16:20:16 +08:00
parent b42136a897
commit d099e520cd
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 187 additions and 83 deletions

View File

@ -1,58 +1,111 @@
--- ---
title: Markdown title: Markdown
category: Markup category: Markup
layout: 2017/sheet
prism_languages: [markdown]
updated: 2017-09-20
weight: -1
--- ---
## Reference
{:.-three-column}
### Headers ### Headers
```markdown
# h1 # h1
### h3 ### h3
```
```markdown
Header 1 Header 1
======== ========
```
```markdown
Header 2 Header 2
-------- --------
```
### Links
[link](http://google.com)
[link][google]
[google]: http://google.com
<http://google.com>
### Images
![Image alt text](/path/to/img.jpg)
![Image alt text](/path/to/img.jpg "title")
![Image alt text][img]
[img]: http://foo.com/img.jpg
### Emphasis ### Emphasis
```markdown
*italic* *italic*
_italic_ _italic_
```
```markdown
**bold** **bold**
__bold__ __bold__
```
```markdown
`code`
```
### Links
```markdown
[link](http://google.com)
```
```markdown
[link][google]
[google]: http://google.com
```
```markdown
<http://google.com>
```
### Images
```markdown
![Image alt text](/path/to/img.jpg)
![Image alt text](/path/to/img.jpg "title")
![Image alt text][img]
```
```markdown
[img]: http://foo.com/img.jpg
```
### Code ### Code
```
4 space indent 4 space indent
makes a code block
```
~~~markdown
```
code fences
```
~~~
~~~markdown
```js
codeFences.withLanguage()
```
~~~
### Blockquotes ### Blockquotes
```markdown
> This is > This is
> a blockquote > a blockquote
> >
> > Nested > > Nested
> > Blockquote > > Blockquote
```
### Horizontal line ### Horizontal line
```markdown
---- ----
**** ```
```markdown
****
```

View File

@ -1,63 +1,114 @@
--- ---
title: Textile title: Textile
category: Markup category: Markup
layout: 2017/sheet
updated: 2017-09-20
weight: -1
--- ---
### Pre blocks ## Reference
{: .-three-column}
<pre>
I am <b>very serious.</b> -- this will get escaped.
</pre>
### Line breaks
Line breaks.
Just break the lines.
### Entities
one(TM), two(R), three(C).
### Inlines ### Inlines
_em_ *strong* __bold-italic__. ??citation??. | Code | Description |
@code@. -strikehtrough-. +insertion+. | --- | --- |
%span%. %{color:red}formatting%. | `_em_` | |
"Hypertext":index.html | `*strong*` | |
"Text link":link | `__bold-italic__` | |
| `@code@` | |
[link]http://link.com | `??citation??` | |
| --- | --- |
!image.jpg! | `-strikethrough-` | |
!image.jpg(title text)! | `+insertion+` | |
!image.jpg!:link.html | --- | --- |
| `%span%` | HTML tag |
!>right.jpg! | `%{color:red}formatting%` | CSS styles |
| --- | --- |
### Horizontal line
--
### Blocks ### Blocks
```textile
h1. Header 1 h1. Header 1
```
```textile
h2. Header 2 h2. Header 2
```
```textile
bq. Blockquote bq. Blockquote
```
```textile
p(classname). Class. p(classname). Class.
```
```textile
p(#id). ID. p(#id). ID.
```
### Lists ### Lists
```textile
## ordered list ## ordered list
```
```textile
* unordered list * unordered list
```
### Links
| Code | Description |
| --- | --- |
| `"Hypertext":index.html` | Link |
| --- | --- |
| `"Text link":link` <br> `[link]http://link.com` | Link via reference |
### Images
| Code | Description |
| --- | --- |
| `!image.jpg!` | Image |
| `!image.jpg(title text)!` | |
| `!image.jpg!:link.html` | |
| `!>right.jpg!` | |
### Escaped HTML
```html
<pre>
I am <b>very serious.</b> -- this
will get escaped.
</pre>
```
### Line breaks
```textile
Line breaks.
Just break the lines.
```
### Entities
```textile
one(TM), two(R), three(C).
```
### Horizontal line
```textile
--
```
### Footnotes ### Footnotes
```textile
Footnotes[1]. Footnotes[1].
```
```textile
fn1. Something. fn1. Something.
```