MARKDOWN (.md)

Published by onesixx on

https://rmarkdown.rstudio.com/authoring_basics.html
MarkDown 사용법 총정리

Markdown 언어를 사용하여, 텍스트 문서를 HTML로 변환하는 방법을 설명하는 일반 텍스트 파일
모든 HTML 마크업을 대신할 수 없기 때문에, 쉽고 빠르게 작성하는 용도로 사용.

Markdown syntax

<h1>부터 <h6>까지 제목을 표현.

# 제목 1
## 제목 2
### 제목 3
#### 제목 4
##### 제목 5
###### 제목 6

제목1(h1)과 제목2(h2)는 특별히 …

제목 1
======
제목 2
------

List :: 1. –

<ol><ul> 목록 태그로 변환.

- 순서가 필요하지 않은 목록에 사용 가능한 기호
  - 대쉬(hyphen)
  * 별표(asterisks)
  + 더하기(plus sign)
  • 순서가 필요하지 않은 목록에 사용 가능한 기호
    • 대쉬(hyphen)
    • 별표(asterisks)
    • 더하기(plus sign)
1. 순서리스트
1. 순서리스트
  - 순서없는 리스트(서브) 
  - 순서없는 리스트(서브) 
1. 순서리스트
  1. 순서리스트(서브)
  1. 순서리스트(서브)
1. 순서리스트
  1. 순서리스트
  2. 순서리스트
    • 순서없는 리스트(서브)
    • 순서없는 리스트서브)
  3. 순서리스트
    1. 순서리스트(서브)
    2. 순서리스트(서브)
  4. 순서리스트

Emphasis :: _ __

각각 <em><strong><del> 태그로 변환됩니다. 밑줄은  <u></u> 태그를 사용

*italic*  또는 _이텔릭체_
**bold**  또는 __두껍게__
**_이텔릭체_ 두껍게**를 같이 사용
~~취소선~~
밑줄

italic (이텔릭체)도 사용
bold (두껍게)도 사용
이텔릭체 두껍게를 같이 사용
취소선
밑줄 

<a>로 변환
URL은 기본적으로 자동으로 Link가 만들어지면, 명시적으로 <> 사용.

[GOOGLE](https://google.com)
내블로그: 
[상대적 참조](./issues) 
즉, https://github.com/sixxchung/edulab/blob/issues

[ONESIXX.com][myBlog link]
[GitHub][1]
문서 안에서 [참조 링크]를 사용

[myBlog link]: https://onesixx.com
[1]: https://github.com
[참조 링크]: https://naver.com "네이버로 이동합니다!"

Images:: !

<img>로 변환

![로제](http://images.kstars.kr/data/images/full/38632/wry24622-jpg.jpg)

![로제Single][cover]
[cover]: https://img.hankyung.com/photo/202103/01.25572091.1.jpg "album cover"
![Vue](/Images/rose.jpg)
![Vue](./Images/rose.jpg)

img[alt=drawing] { width: 200px; }

Code:: “`

<pre><code>로 변환

소스/코드 관련 `ddtrain %>% str()` 인라인 코드 강조

```r
ddtrain[base_price<10000,] %>% ggplot(aes(x=base_price)) + 
\tgeom_histogram(aes(y=..density..), bins=20) +
\tgeom_density(color="red", bins=10)
```

```
No language indicated, so no syntax highlighting. 
But let's throw in a tag.
```

Table :: |

<table> 태그
헤더셀을 3개 (이상)의 - 구분하고, |로 열구분 , :로 정렬

First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

|First Header  | Second Header|
|---|---:|
|Content Cell  | Content Cell|
|Content Cell  | Content Cell|

BlockQuote :: > >> >>>

<blockquote> 태그

A friend once said:
> It's always better to give
> than to receive.
>> Nested blockquote1
>>> Nested blockquote2

Horizontal Rule :: *** — ___

각 기호를 3개 이상 입력

******
Horizontal Rule
------
Page Break
______
Under Scores

Line Breaks :: <br /><br />

두 개 이상의 Spaces 넣기

가로선 :: —

구분라인

* * *
***
*****
- - -
------------------

두 개 이상의 Spaces

폰트색은 지원안됨

html를 활용하거나 ,이모지사용 (http://www.iemoji.com/)

 some *blue* text .

Categories: Etc&Tip

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x