mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 21:44:45 +03:00
Optimal markdown
This commit is contained in:
1 parent
f7520752e9
commit
aa646d00ad
2 files changed
+87
-49
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
> Share quick reference cheat sheet for developers.
|
||||
|
||||

|
||||
[](https://quickref.me/)
|
||||
|
||||
|
||||
**[LiveView](https://quickref.me/)** _(quickref.me)_
|
||||
|
||||
+86
-48
@@ -87,22 +87,6 @@ or
|
||||
```
|
||||
|
||||
|
||||
### Emphasis
|
||||
|
||||
```markdown
|
||||
*italic*
|
||||
_italic_
|
||||
```
|
||||
|
||||
```markdown
|
||||
**bold**
|
||||
__bold__
|
||||
```
|
||||
|
||||
```markdown
|
||||
`inline code`
|
||||
~~struck out~~
|
||||
```
|
||||
|
||||
### Links
|
||||
|
||||
@@ -120,65 +104,119 @@ __bold__
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Emphasis
|
||||
|
||||
```markdown
|
||||
*italic*
|
||||
_italic_
|
||||
```
|
||||
|
||||
```markdown
|
||||
**bold**
|
||||
__bold__
|
||||
```
|
||||
|
||||
```markdown
|
||||
`inline code`
|
||||
~~struck out~~
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
### Horizontal line
|
||||
|
||||
Hyphens
|
||||
```markdown
|
||||
----
|
||||
---
|
||||
```
|
||||
or
|
||||
|
||||
Asterisks
|
||||
```markdown
|
||||
****
|
||||
***
|
||||
```
|
||||
|
||||
Underscores
|
||||
```markdown
|
||||
___
|
||||
```
|
||||
|
||||
|
||||
### Tables
|
||||
|
||||
|
||||
|
||||
### Code
|
||||
~~~markdown
|
||||
```javascript
|
||||
console.log("This is a block code")
|
||||
```
|
||||
~~~
|
||||
|
||||
```markdown
|
||||
| Column 1 Heading | Column 2 Heading |
|
||||
| ---------------- | ---------------- |
|
||||
| Some content | Other content |
|
||||
~~~css
|
||||
.button { border: none; }
|
||||
~~~
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```markdown
|
||||
Column 1 Heading | Column 2 Heading
|
||||
--- | ---
|
||||
Some content | Other content
|
||||
4 space indent makes a code block
|
||||
```
|
||||
|
||||
|
||||
#### inline code
|
||||
```markdown
|
||||
`Inline code` has back-ticks around it
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Tables {.col-span-2}
|
||||
|
||||
```markdown
|
||||
| Left column | Center column | Right column |
|
||||
|:------------|:-------------:|-------------:|
|
||||
| Cell 1 | Centered | $1600 |
|
||||
| Cell 2 | Cell 3 | $12 |
|
||||
```
|
||||
|
||||
Simple style
|
||||
```markdown
|
||||
Left column | Center column | Right column
|
||||
:---:|:---:|:---:
|
||||
Cell 1 | Centered | $1600
|
||||
Cell 2 | Cell 3 | $12
|
||||
```
|
||||
A markdown table generator: [tableconvert.com](https://tableconvert.com/)
|
||||
|
||||
|
||||
|
||||
### Images {.col-span-2}
|
||||
|
||||
```markdown
|
||||

|
||||

|
||||
![Alt text][img]
|
||||

|
||||
|
||||

|
||||
```
|
||||
|
||||
#### Image with link
|
||||
```markdown
|
||||
[img]: http://foo.com/img.jpg
|
||||
[](https://github.com/)
|
||||
|
||||
[](link_url)
|
||||
```
|
||||
|
||||
### Code
|
||||
#### Reference style
|
||||
```markdown
|
||||
![alt text][/images/logo.png]
|
||||
|
||||
```
|
||||
4 space indent
|
||||
makes a code block
|
||||
[logo]: /images/logo.png "Logo Title"
|
||||
```
|
||||
|
||||
~~~markdown
|
||||
```python
|
||||
def print (str)
|
||||
print(str)
|
||||
```
|
||||
~~~
|
||||
|
||||
|
||||
~~~markdown
|
||||
```js
|
||||
codeFences.withLanguage()
|
||||
```
|
||||
~~~
|
||||
|
||||
### Backslash escapes
|
||||
|
||||
|
||||
Reference in new issue
Block a user