· 2분 읽기

Sample blog post to learn markdown tips

There's lots to learn!

Note: This is a demo post showing common Markdown elements in Hugo.

Here is some bold text

Here is a secondary heading

This is a link to a different site and this is a link to a section inside this page.

Here’s a table:

NumberNext numberPrevious number
FiveSixFour
TenElevenNine
SevenEightSix
TwoThreeOne

You can use MathJax to write LaTeX expressions. For example: When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

How about a yummy crepe?

Crepe

It can also be centered!

Crepe

Here’s a code chunk:

var foo = function(x) {
  return(x + 5);
}
foo(3)

And here is the same code with syntax highlighting:

var foo = function(x) {
  return(x + 5);
}
foo(3)

And here is the same code yet again but with line numbers:

var foo = function(x) {
  return(x + 5);
}
foo(3)

Boxes

You can add notification, warning and error boxes like this:

Notification

Note: This is a notification box.

Warning

Warning: This is a warning box.

Error

Error: This is an error box.

Local URLs in project sites

When hosting a project site on GitHub Pages (for example, https://USERNAME.github.io/MyProject), URLs that begin with / and refer to local files may not work correctly due to how the root URL (/) is interpreted by GitHub Pages. You can read more about it in the FAQ. To demonstrate the issue, the following local image will be broken if your site is a project site:

Crepe

If the above image is broken, then you’ll need to follow the instructions in the FAQ. Here is proof that it can be fixed:

Crepe