Markdown Syntax
제가 Note를 작성하면서 필요하다고 생각하는 마크다운 Syntax를 정리하였습니다. 위가 마크다운이고 아래가 실행결과입니다. 나열순서는 ABC 순입니다.
Blockquotes
> Stay hungry. Stay foolish.
> People think focus means saying yes to the thing you've got to focus on.
But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things.
<cite>Steve Jobs</cite> --- Apple Worldwide Developers' Conference, 1997
{: .small}
Stay hungry. Stay foolish.
People think focus means saying yes to the thing you’ve got to focus on. But that’s not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I’m actually as proud of the things we haven’t done as the things I have done. Innovation is saying no to 1,000 things.
Steve Jobs — Apple Worldwide Developers’ Conference, 1997
Codeblock
위아래를 3개의 back quote로 감싼 후 Code라고 기재된 곳에 Code를 입력하면 아래의 화면이 출력됩니다.
```html Code ```
<nav class="pagination" role="navigation">
{% if page.previous %}
<a href="{{ site.url }}{{ page.previous.url }}" class="btn" title="{{ page.previous.title }}">Previous article</a>
{% endif %}
{% if page.next %}
<a href="{{ site.url }}{{ page.next.url }}" class="btn" title="{{ page.next.title }}">Next article</a>
{% endif %}
</nav><!-- /.pagination -->
```python Code ```
class ArticleQuerySet(models.QuerySet):
def search(self, query=None):
qs = self
if query is not None:
or_lookup = (Q(title__icontains=query)|
Q(content__icontains=query)
)
qs = qs.filter(or_lookup).distinct() # distinct() is often necessary with Q lookups
return qs
pre
tag로 감싸면 흰 배경으로 실행됩니다.
<pre>
Code
</pre>
.post-title { margin: 0 0 5px; font-weight: bold; font-size: 38px; line-height: 1.2; and here's a line of some really, really, really, really long text, just to see how the PRE tag handles it and to find out how it overflows;
Writing Liquid Template in Markdown Code Blocks with Jekyll - 참고링크
1에 raw를 입력하고 2에 endraw를 입력한 후 실행하면 아래의 결과가 나타납니다.
{% 1 %} ```html Code ``` {% 2 %}
<h1>Writing Liquid tags</h1>
{{ content }}
Footnote
이것은 주석 테스트 문장입니다.[^1]
[^1]: 1에 대한 설명
이것은 주석 테스트 문장 1입니다. 1
참고로 제가 적용한 Minimal-Mistakes 테마버전은 4.15.2 입니다. 그런데 4.15.2 버전에서 Footnote를 달면 정확한 Footnote로 이동되지 않는 오류가 있었습니다. 그래서 assets/js/_main.js
와 assets/js/main.min.js
를 4.14.2 버전으로 수정해보았더니 정확한 Footnote로 이동되었습니다. 아직 자바스크립트를 공부하지 않아 이유는 알 수 없습니다만 참고목적으로 적어 둡니다.
Header
# Header1
## Header2
### Header3
#### Header4
##### Header5
###### Header6
Horizontal Rules
***
Image
{% include figure image_path="/assets/images/book.jpg" alt="this is a placeholder image" caption="This is a figure caption." %}

Linebreaks
라인1
라인2
# <br>이나 space 2번
라인1<br>
라인2
라인1 라인2
라인1
라인2
Link Tag
This is an example of a [link](https://apple.com "Apple").
This is an example of a link.
This is an example of a [link][minimal-mistakes]
[minimal-mistakes]: https://github.com/mmistakes/minimal-mistakes
This is an example of a link
List
* List item one
* List item one
* List item one
* List item two
* List item three
* List item four
* List item two
* List item three
* List item four
* List item two
* List item three
* List item four
- List item one
- List item one
- List item one
- List item two
- List item three
- List item four
- List item two
- List item three
- List item four
- List item one
- List item two
- List item three
- List item four
1. List item one
1. List item one
1. List item one
2. List item two
3. List item three
4. List item four
2. List item two
3. List item three
4. List item four
2. List item two
3. List item three
4. List item four
- List item one
- List item one
- List item one
- List item two
- List item three
- List item four
- List item two
- List item three
- List item four
- List item one
- List item two
- List item three
- List item four
Notices
**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice}` class.
{: .notice}
**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--primary}` class.
{: .notice--primary}
**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--info}` class.
{: .notice--info}
**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--warning}` class.
{: .notice--warning}
**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--success}` class.
{: .notice--success}
**Watch out!** This paragraph of text has been [emphasized](#) with the `{: .notice--danger}` class.
{: .notice--danger}
Watch out! This paragraph of text has been emphasized with the {: .notice}
class.
Watch out! This paragraph of text has been emphasized with the {: .notice--primary}
class.
Watch out! This paragraph of text has been emphasized with the {: .notice--info}
class.
Watch out! This paragraph of text has been emphasized with the {: .notice--warning}
class.
Watch out! This paragraph of text has been emphasized with the {: .notice--success}
class.
Watch out! This paragraph of text has been emphasized with the {: .notice--danger}
class.
Strong Tag
This tag shows **bold text**.
This tag shows bold text.
Reference link
-
1에 대한 설명 ↩