Dev Cock
코크의 개발이야기
Dev Cock
전체 방문자
오늘
어제
  • 분류 전체보기 (15)
    • Signal Processing (5)
    • Machine Learning (2)
    • Artificial Intelligence (5)
    • Markdown (1)
    • C, C++ (1)
    • Computer Vision (1)

공지사항

인기 글

최근 댓글

최근 글

태그

  • Astar
  • DFS
  • BFS
  • 탐색알고리즘
  • UCS
  • 음성데이터분석
hELLO · Designed By 정상우.
Dev Cock

코크의 개발이야기

Markdown

티스토리 마크다운/이미지 정렬 및 캡션 총 정리

2022. 2. 11. 11:26

티스토리는 스타일 지정에 따라 마크다운이 다르게 표현되는 경우가 많은 것 같습니다. 본 개발 블로그를 시작함에 앞서 일관적인 포스트 작성을 위해 마크다운을 한번 정리해봤습니다. 사실 제가 정리한건 아니고, 여기 사이트에서 마크다운 테스트 문구를 모두 복사해 왔습니다.

이미지 중앙 정렬 및 캡션

제가 제 블로그에 맞게 태그로 만들어봤습니다. 마크다운으로 작성 시, 아래 태그를 삽입하면 됩니다.

1
2
3
4
5
6
<br/>
<center>
    <img src="http://www.physicsclassroom.com/Class/sound/u11l1c2.gif" /><br />
    <span style="color: #bdbdbd; font-size:70%">http://www.physicsclassroom.com/Class/sound</span>
</center>
<br/>
Colored by Color Scripter
cs

실행 결과는 다음과 같습니다.



http://www.physicsclassroom.com/Class/sound


마크다운 문법 총 정리

아마도 여기서 다 사용하지도 못할 것 같습니다만, 일단 모조리 가져왔습니다. 아마 보시면 아시겠지만 참조한 사이트와 달리, 제대로 작동하지 않는 문법들이 있습니다. 애초에 hELLO 스킨을 제작하신 정상우님이 블로그에서 마크다운은 별도로 대응하지 않는다고 말씀하셨는데요. 스킨이 그저 예쁘고 깔끔하기 때문에... 저는 일단 잘 작동하는 다음 것들만 사용해야겠습니다.


Advertisement :)

  • pica - high quality and fast image
    resize in browser.
  • babelfish - developer friendly
    i18n with plurals support and easy syntax.

You will like those projects!


h1 Heading 8-)

h2 Heading

h3 Heading

h4 Heading

h5 Heading
h6 Heading

Horizontal Rules




Typographic replacements

Enable typographer option to see result.

(c) (C) (r) (R) (tm) (TM) (p) (P) +-

test.. test... test..... test?..... test!....

!!!!!! ???? ,, -- ---

"Smartypants, double quotes" and 'single quotes'

Emphasis

This is bold text

This is bold text

This is italic text

This is italic text

Strikethrough

Blockquotes

Blockquotes can also be nested...

...by using additional greater-than signs right next to each other...

...or with spaces between arrows.

Lists

Unordered

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
      • Ac tristique libero volutpat at
      • Facilisis in pretium nisl aliquet
      • Nulla volutpat aliquam velit
  • Very easy!

Ordered

  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Integer molestie lorem at massa

  4. You can use sequential numbers...

  5. ...or keep all the numbers as 1.

Start numbering with offset:

  1. foo
  2. bar

Code

Inline code

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code "fences"

Sample text here...

Syntax highlighting

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

Tables

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Right aligned columns

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Links

link text

link with title

Autoconverted link https://github.com/nodeca/pica (enable linkify to see)

Images

Minion

Stormtroopocat

Like links, Images also have a footnote style syntax

Alt text

With a reference later in the document defining the URL location:

Plugins

The killer feature of markdown-it is very effective support of
syntax plugins.

Emojies

Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum:

Shortcuts (emoticons): :-) :-( 8-) ;)

see how to change output with twemoji.

Subscript / Superscript

  • 19^th^
  • H2O

++Inserted text++

==Marked text==

Footnotes

Footnote 1 link[^first].

Footnote 2 link[^second].

Inline footnote^[Text of inline footnote] definition.

Duplicated footnote reference[^second].

[^first]: Footnote can have markup

and multiple paragraphs.

[^second]: Footnote text.

Definition lists

Term 1

: Definition 1
with lazy continuation.

Term 2 with inline markup

: Definition 2

    { some code, part of Definition 2 }

Third paragraph of definition 2.

Compact style:

Term 1
~ Definition 1

Term 2
~ Definition 2a
~ Definition 2b

Abbreviations

This is HTML abbreviation example.

It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.

*[HTML]: Hyper Text Markup Language

Custom containers

::: warning
here be dragons
:::

    Dev Cock
    Dev Cock
    AI 전문가를 꿈꾸는 코크의 개발이야기

    티스토리툴바