Skip to content

Test

내부 문서

- [live preview](../#live-preview)
- [tables](#tables)
- [Reference](../reference)

URL

마크다운 기본 문법은 < > 을 이용해서 URL을 감싸는 것이라고 한다.

github 처럼 자동으로 link 가 생성되게 하려면 MagicLink extension 을 설정해줘야 한다.

<https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/>

https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/

Abbreviations

HTML이나 W3C 위에 마우스를 위치하면 간단한 설명이 나옵니다.

The HTML specification is maintained by W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium

The HTML specification is maintained by W3C.

Admonitions

Note

test note test

test

hahahahaha

??? example

Bug

collapsed?

Danger

test 1 2 3 4
???+ note
tip, success, done, help, warning, info, abstract, failure, bug, example

CodeBlock

code title

bubble_sort.py
def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items) - 1 - i):
            if items[j] > items[j + 1]:
                items[j], items[j + 1] = items[j + 1], items[j]

add annotation

+ 를 클릭하면 설명을 볼 수 있습니다.

theme:
  features:
    - content.code.annotate # (1)
  1. 🙋‍♂️ I'm a code annotation! I can contain code, formatted text, images, ... basically anything that can be expressed in Markdown.

adding line numbers

1
2
3
4
5
def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items) - 1 - i):
            if items[j] > items[j + 1]:
                items[j], items[j + 1] = items[j + 1], items[j]

highlighting lines

def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items) - 1 - i):
            if items[j] > items[j + 1]:
                items[j], items[j + 1] = items[j + 1], items[j]

highlighting inline code blocks

The `#!python range()` function is used to generate a sequence of numbers.

The range() function is used to generate a sequence of numbers.

include src file

이 기능은 해당 repo 에 있는 파일만 포함 할 수 있습니다.

.github/workflows/deploy-mkdocs.yml
name: Publish docs via GitHub Pages
on:
  push:
    branches:
      - master
      - main

jobs:
  build:
    name: Deploy docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout master
        uses: actions/checkout@v2

      - name: Setup python
        uses: actions/setup-python@v2
        with:
          python-version: 3.x

      - name: Install dependency
        run: pip install mkdocs-material=="8.*"

      - name: build
        run: |
          mkdocs gh-deploy --force

tabs

#include <stdio.h>

int main(void) {
  printf("Hello world!\n");
  return 0;
}
#include <iostream>

int main(void) {
  std::cout << "Hello world!" << std::endl;
  return 0;
}

list with tabs

  • Sed sagittis eleifend rutrum
  • Donec vitae suscipit est
  • Nulla tempor lobortis orci
  1. Sed sagittis eleifend rutrum
  2. Donec vitae suscipit est
  3. Nulla tempor lobortis orci

Images

left align

![image](https://dummyimage.com/600x400/eee/aaa)

image

![Image title](https://dummyimage.com/600x400/eee/aaa){ width="300" align=left }

Image title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.

Image title Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.

![Cat](https://static.boredpanda.com/blog/wp-content/uploads/2019/07/1-5d2cd2a0ac058__880.jpg){width="300" : .zoom .shadow .center}

![Cat](https://static.boredpanda.com/blog/wp-content/uploads/2019/07/1-5d2cd2a0ac058__880.jpg){width="300" : .shadow .no-border}

Cat

Cat

Tables

Method Description
GET Fetch resource
PUT Update resource
DELETE Delete resource
Method Description
GET Fetch resource
PUT Update resource
DELETE Delete resource

Lists

definition list

Lorem ipsum dolor sit amet

Sed sagittis eleifend rutrum. Donec vitae suscipit est. Nullam tempus tellus non sem sollicitudin, quis rutrum leo facilisis.

Cras arcu libero

Aliquam metus eros, pretium sed nulla venenatis, faucibus auctor ex. Proin ut eros sed sapien ullamcorper consequat. Nunc ligula ante.

Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis. Nam vulputate tincidunt fringilla. Nullam dignissim ultrices urna non auctor.

task view

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit
  • Vestibulum convallis sit amet nisi a tincidunt
    • In hac habitasse platea dictumst
    • In scelerisque nibh non dolor mollis congue sed et metus
    • Praesent sed risus massa
  • Aenean pretium efficitur erat, donec pharetra, ligula non scelerisque

MathJax

$$
\operatorname{ker} f=\{g\in G:f(g)=e_{H}\}{\mbox{.}}
$$
\[ \operatorname{ker} f=\{g\in G:f(g)=e_{H}\}{\mbox{.}} \]

Footnotes

Lorem ipsum1 dolor sit amet, consectetur adipiscing elit.2


  1. Lorem ipsum dolor sit amet, consectetur adipiscing elit. 

  2. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. 

Back to top