这个sample的md文件在[这里](/static/upload/old_static_blog/files/sample.md)。

# 这是h1

## 这是h2

### 这是h3

#### 这是h4

##### 这是h5

###### 这是h6

> 这是区块引用。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。这是很多文字。

> 这是区块引用的第二段

> 区块引用可以嵌套
> > 根据层次使用不同数量的>即可

> 就像上面那样

> 还可以在区块引用中使用其他md语法

> ### 像这个h3

* 这是无序列表的列表项1
* 这是无序列表的列表项2
* 这是无序列表的列表项3

1. 这是有序列表的列表项1
2. 这是有序列表的列表项2
3. 这是有序列表的列表项3

***

点击[这里](https://www.google.com/ "homepage")可以打开google

这是一个参考式的[链接][1]，点击可返回首页。链接内容可以在文档任何位置定义出来。

[1]: /

*一个 * 是em标签的强调*，**两个 * 是strong标签的强调**

行内代码使用反引号包围起来，像这样：`<p>Hello world!</p>`

若代码中存在反引号，则可以用多个反引号来开启结束代码片段，像这样：`` SELECT * FROM `table` ``

这是区块代码：

```
#include<stdio.h>
int main()
{
    printf("Hello World");
    return 0;
}
```

```
<html>
    <head>
    <title><?= 'Fibonacci numbers' ?></title>
    
    <?php
        // PHP has a plethora of comment types
        /* What is a
            "plethora"? */
        function fib($n) {
            # I don't know.
            $a = 1;
            $b = 1;
            while (--$n >= 0) {
                echo "$a\n";
                $tmp = $a;
                $a += $b;
                $b = $tmp;
            }
        }
    ?>

    </head>
    <body>
    <?= fib(10) ?>
    </body>
</html>
```

```
def fib():
  '''
  a generator that produces the fibonacci series's elements
  '''

  a = 1
  b = 1
  while True:
    a, b = a + b, a
    yield a

def nth(series, n):
  '''
  returns the nth element of a series,
  consuming the series' earlier elements.
  '''

  for x in series:
    n -= 1
    if n <= 0: return x

print nth(fib(), 10)

/* not a comment and not keywords: null char true */
```

插入`$\LaTeX$`公式：使用左右各一个$符号将公式包围起来，调用MathJax处理，像这样`$\frac{-b\pm\sqrt{b^2-4ac}}{2a}$`。

注意：为了使公式内的下划线不被识别成强调，我们需要在前后加上反引号，使其成为代码段。多出来的code标签，我已调用程序在生成的html中删去。

上面的是行内公式，如果是行间公式的话，需要使用` ```math `这种语言为math的代码区块，像这样：

```math
\vec{\nabla }\times \vec{F}=\left( \frac{\partial {{F}_{z}}}{\partial y}-\frac{\partial {{F}_{y}}}{\partial z} \right)\mathbf{i}+\left( \frac{\partial {{F}_{x}}}{\partial z}-\frac{\partial {{F}_{z}}}{\partial x} \right)\mathbf{j}+\left( \frac{\partial {{F}_{y}}}{\partial x}-\frac{\partial {{F}_{x}}}{\partial y} \right)\mathbf{k}
```

接下来测试一些公式嵌套组合的情况：

| Syntax      | 表头公式`$O(n\log n)$` |
| ----------- | ----------- |
| A1      | B1`$O(n\log n)$`       |
| A2   | B2        |

> blockquote中的公式`$O(n\log n)$`

* list中的公式`$O(n\log n)$`

> * blockquote嵌套list
> * 测试`$O(n\log n)$`

# 测试标题中的公式`$O(n\log n)$`

插入图片：![这是alt信息](/static/upload/old_static_blog/img/sample.jpg)

参考式图片与链接的方式一样。

自动链接（自动把网址转换成链接的形式）：

<https://www.google.com/>

markdown支持对于\\\`\*\_\{\}\[\]\(\)\#\+\-\.\!字符的转义输出

如果需要用到HTML标签，直接使用即可。

另外在网站里还放了一套表情包，测试一下![](/static/upload/common/sticker/嗷大喵/赞.gif)

---

> UPDATE: 把主博客与debug博客合并后，整体从自建静态博客整体迁移到了firekylin，增加了一些语法支持，具体如下。

这些是原生HTML标签：

* This is a <sub>subscript</sub> text
* This is a <sup>superscript</sup> text
* This is an <ins>underlined</ins> text
* 这是kbd标签示例（主题中优化了样式）<kbd>Ctrl</kbd>+<kbd>C</kbd>
* 这是ruby标签示例（主题中优化了样式）：<ruby>汉<rt>han</rt>字<rt>zi</rt></ruby>、<ruby>英雄<rt>えいゆう</rt></ruby>
* 这是details标签（实现collapsed sections）示例

<details>
<summary>Tips for collapsed sections</summary>

### You can add a header

You can add text within a collapsed section.

You can add an image or a code block, too.

```ruby
   puts "Hello World"
```
</details>

脚注功能：

Here is a simple footnote[^1].

A footnote can also have multiple lines[^2].

[^1]: My reference.
[^2]: To add line breaks within a footnote, add 2 spaces to the end of a line.  
This is a second line.

Alert功能：

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

表格：

| Left-aligned | Center-aligned | Right-aligned |
| :---         |     :---:      |          ---: |
| git status   | git status     | git status    |
| git diff     | git diff       | git diff      |

| Name     | Character |
| ---      | ---       |
| Backtick | `         |
| Pipe     | \|        |

| abc | def |
| --- | --- |
| bar |
| bar | baz | boo |

| abc | def |
| --- | --- |
