🔥알림🔥
① 테디노트 유튜브 -
구경하러 가기!
② LangChain 한국어 튜토리얼
바로가기 👀
③ 랭체인 노트 무료 전자책(wikidocs)
바로가기 🙌
④ RAG 비법노트 LangChain 강의오픈
바로가기 🙌
⑤ 서울대 PyTorch 딥러닝 강의
바로가기 🙌
편안한 Jekyll 사용을 위한 마크다운(markdown) 문법
Github Pages 운용을 위해서는 markdown 문법에 대한 이해도가 요구되며, [공통] 마크다운 markdown 작성법을 참고하여 작성하였습니다.
제가 주로 사용하는 Syntax 위주로 작성하였습니다.
1. Header & Sub-HeaderPermalink
- HeaderPermalink
SyntaxPermalink
이것은 헤더입니다.
===
ExamplePermalink
이것은 Header입니다.Permalink
- Sub-HeaderPermalink
SyntaxPermalink
이것은 부제목입니다.
---
ExamplePermalink
이것은 Sub-Header입니다.Permalink
- H1 ~ H6 TagsPermalink
SyntaxPermalink
# H1입니다.
## H2입니다.
### H3입니다.
#### H4입니다.
##### H5입니다.
###### H6입니다.
ExamplePermalink
H1입니다.Permalink
H2입니다.Permalink
H3입니다.Permalink
H4입니다.Permalink
H5입니다.Permalink
H6입니다.Permalink
2. LinksPermalink
링크를 넣고 싶은 경우는 2가지 방법이 있다. (첫번째 방법이 개인적으로 좀 특이했다..)
SyntaxPermalink
Link: [참조 키워드][링크변수]
[링크변수]: WebAddress "Descriptions"
ExamplePermalink
Link: 구글로 이동
SyntaxPermalink
[구글로 이동](https://google.com)
ExamplePermalink
3. BlockQuotePermalink
SyntaxPermalink
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
> 이것은 BlockQuote 입니다.
ExamplePermalink
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
이것은 BlockQuote 입니다.
4. Ordered ListPermalink
SyntaxPermalink
1. 순서가 있는 목록
2. 순서가 있는 목록
3. 순서가 있는 목록
ExamplePermalink
- 순서가 있는 목록
- 순서가 있는 목록
- 순서가 있는 목록
5. Unordered ListPermalink
SyntaxPermalink
* 순서가 없는 목록
* 순서가 없는 목록
* 순서가 없는 목록
* 순서가 없는 목록
* 순서가 없는 목록
* 순서가 없는 목록
+ 순서가 없는 목록
- 순서가 없는 목록
* 순서가 없는 목록
ExamplePermalink
- 순서가 없는 목록
- 순서가 없는 목록
-
순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
- 순서가 없는 목록
6. Code BlockPermalink
- GeneralPermalink
SyntaxPermalink
<pre>코드 블락 열기 전
<code> 이곳에 코드를 삽입</code>
코드 블락 닫은 후</pre>
ExamplePermalink
코드 블락 열기 전
이곳에 코드를 삽입
코드 블락 닫은 후
- Syntax HighlightPermalink
Python
SyntaxPermalink
```python
# This program adds up integers in the command line
import sys
try:
total = sum(int(arg) for arg in sys.argv[1:])
print 'sum =', total
except ValueError:
print 'Please supply integer arguments'
```
ExamplePermalink
# This program adds up integers in the command line
import sys
try:
total = sum(int(arg) for arg in sys.argv[1:])
print 'sum =', total
except ValueError:
print 'Please supply integer arguments'
Ruby
SyntaxPermalink
```ruby
a = [ 45, 3, 19, 8 ]
b = [ 'sam', 'max', 56, 98.9, 3, 10, 'jill' ]
print (a + b).join(' '), "\n"
print a[2], " ", b[4], " ", b[-2], "\n"
print a.sort.join(' '), "\n"
a << 57 << 9 << 'phil'
print "A: ", a.join(' '), "\n"
```
ExamplePermalink
a = [ 45, 3, 19, 8 ]
b = [ 'sam', 'max', 56, 98.9, 3, 10, 'jill' ]
print (a + b).join(' '), "\n"
print a[2], " ", b[4], " ", b[-2], "\n"
print a.sort.join(' '), "\n"
a << 57 << 9 << 'phil'
print "A: ", a.join(' '), "\n"
C++
SyntaxPermalink
```c++
int str_equals(char *equal1, char *eqaul2)
{
while(*equal1==*eqaul2)
{
if ( *equal1 == '\0' || *eqaul2 == '\0' ){break;}
equal1++;
eqaul2++;
}
if(*eqaul1 == '\0' && *eqaul2 == '\0' ){return 0;}
else {return -1};
}
```
ExamplePermalink
int str_equals(char *equal1, char *eqaul2)
{
while(*equal1==*eqaul2)
{
if ( *equal1 == '\0' || *eqaul2 == '\0' ){break;}
equal1++;
eqaul2++;
}
if(*eqaul1 == '\0' && *eqaul2 == '\0' ){return 0;}
else {return -1};
}
C#
SyntaxPermalink
```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Inheritance
{
class Program
{
static void Main(string[] args)
{
Teacher d = new Teacher();
d.Teach();
Student s = new Student();
s.Learn();
s.Teach();
Console.ReadKey();
}
class Teacher
{
public void Teach()
{
Console.WriteLine("Teach");
}
}
class Student : Teacher
{
public void Learn()
{
Console.WriteLine("Learn");
}
}
}
}
```
ExamplePermalink
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Inheritance
{
class Program
{
static void Main(string[] args)
{
Teacher d = new Teacher();
d.Teach();
Student s = new Student();
s.Learn();
s.Teach();
Console.ReadKey();
}
class Teacher
{
public void Teach()
{
Console.WriteLine("Teach");
}
}
class Student : Teacher
{
public void Learn()
{
Console.WriteLine("Learn");
}
}
}
}
Java
SyntaxPermalink
```java
class DoWhileLoopExample {
public static void main(String args[]){
int i=10;
do{
System.out.println(i);
i--;
}while(i>1);
}
}
```
ExamplePermalink
class DoWhileLoopExample {
public static void main(String args[]){
int i=10;
do{
System.out.println(i);
i--;
}while(i>1);
}
}
Go
SyntaxPermalink
```go
package main
import "fmt"
func main() {
var greeting = "Hello world!"
fmt.Printf("normal string: ")
fmt.Printf("%s", greeting)
fmt.Printf("\n")
fmt.Printf("hex bytes: ")
for i := 0; i < len(greeting); i++ {
fmt.Printf("%x ", greeting[i])
}
fmt.Printf("\n")
const sampleText = "\xbd\xb2\x3d\xbc\x20\xe2\x8c\x98"
/*q flag escapes unprintable characters, with + flag it escapses non-ascii
characters as well to make output unambigous */
fmt.Printf("quoted string: ")
fmt.Printf("%+q", sampleText)
fmt.Printf("\n")
}
```
ExamplePermalink
package main
import "fmt"
func main() {
var greeting = "Hello world!"
fmt.Printf("normal string: ")
fmt.Printf("%s", greeting)
fmt.Printf("\n")
fmt.Printf("hex bytes: ")
for i := 0; i < len(greeting); i++ {
fmt.Printf("%x ", greeting[i])
}
fmt.Printf("\n")
const sampleText = "\xbd\xb2\x3d\xbc\x20\xe2\x8c\x98"
/*q flag escapes unprintable characters, with + flag it escapses non-ascii
characters as well to make output unambigous */
fmt.Printf("quoted string: ")
fmt.Printf("%+q", sampleText)
fmt.Printf("\n")
}
Swift
SyntaxPermalink
```swift
let password = "HelloWorld"
let repeatPassword = "HelloWorld"
if ((password.elementsEqual(repeatPassword)) == true)
{
print("Passwords are equal")
} else {
print("Passwords are not equal")
}
```
ExamplePermalink
let password = "HelloWorld"
let repeatPassword = "HelloWorld"
if ((password.elementsEqual(repeatPassword)) == true)
{
print("Passwords are equal")
} else {
print("Passwords are not equal")
}
Nodejs
SyntaxPermalink
```js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);
```
ExamplePermalink
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);
7. Strikethrough (취소선)Permalink
SyntaxPermalink
~~ 이것은 취소선 입니다. ~~
ExamplePermalink
이것은 취소선 입니다.
8. Bold, ItalicPermalink
SyntaxPermalink
[Italic] * 강조와 기울임 *
[Bold] ** 강조와 기울임 **
[Bold & Italic] *** 강조와 기울임 ***
**** 강조와 기울임 ****
강조와 기울임
강조와 기울임
강조와 기울임
**강조와 기울임**
9. ImagePermalink
SyntaxPermalink


ExamplePermalink
댓글남기기