Skip to content

Commit

Permalink
fix icons
Browse files Browse the repository at this point in the history
  • Loading branch information
myp0402 committed Jul 30, 2024
1 parent 1decd21 commit e9b56b3
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 21 deletions.
1 change: 1 addition & 0 deletions pages/posts/hello-world.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Hello World
date: 2022-05-31
---
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).

Expand Down
121 changes: 102 additions & 19 deletions pages/posts/使用教程.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
---
title: markdown语法(转载自AceMark)
title: Markdown语法
date: 2020-12-04 09:29:11
update: 2024-07-30 13:03:50
tags:
- markdown
- Github
- 博客
katex: true
copyright: false
---

# 欢迎使用AceMark

AceMark 致力于打造一款易用、专业的 Markdown 创作工具。

## 什么是 Markdown?

Markdown 是一种轻量级的标记语言。它允许人们使用易读易写的纯文本格式编写文档,并支持图片、图表、数学公式等,然后转换成有效的 HTML 文档。AceMark 采用 [GitHub Flavored Markdown](https://github.github.com/gfm/) 语法(简称 GFM),并支持一些扩展语法。下面我们来熟悉下 AceMark 的常用标记说明。
Markdown 是一种轻量级的标记语言。它允许人们使用易读易写的纯文本格式编写文档,并支持图片、图表、数学公式等,然后转换成有效的 HTML 文档。

为了方便导航,我们在这里插入目录:

[toc]
```
[[toc]]
```

[[toc]]

## 标题

AceMark 最高支持六级标题,一级标题在行首使用一个`#`,二级标题使用两个`##`,以此类推。如下:
Markdown 最高支持六级标题,一级标题在行首使用一个`#`,二级标题使用两个`##`,以此类推。如下:

```
# 一级标题
Expand Down Expand Up @@ -58,15 +57,15 @@ AceMark 最高支持六级标题,一级标题在行首使用一个`#`,二级
## 链接

```
[链接标题](http://www.acemark.net)
[Google](http://www.google.com)
```
输出:[链接标题](http://www.acemark.net)
输出:[Google](http://www.google.com)

如果想要显示一张网络图片,方式和普通链接类似,但需要在前面加一个`!`符号。
```
![图片标题](http://www.acemark.net/img/icon.jpg)
![favicon](/favicon.webp)
```
![图片标题](http://www.acemark.net/img/icon.jpg)
![favicon](/favicon.webp)


## 表格
Expand Down Expand Up @@ -131,7 +130,10 @@ AceMark 最高支持六级标题,一级标题在行首使用一个`#`,二级
- [X] 已完成

## 代码
AceMark 支持几十种代码高亮。例如:

代码高亮

例如:

### Go

Expand Down Expand Up @@ -230,7 +232,6 @@ $$ F(\omega)=\int_{-\infty}^{+\infty} {f(t)e^{-i\omega t}dt} $$
要输出矩阵也很简单,只需要

```
<div>
$$ A_{m\times n}=
\begin{bmatrix}
a_{11}& a_{12}& \cdots & a_{1n} \\
Expand All @@ -239,12 +240,10 @@ $$ F(\omega)=\int_{-\infty}^{+\infty} {f(t)e^{-i\omega t}dt} $$
a_{m1}& a_{m2}& \cdots & a_{mn}
\end{bmatrix}
=\left [ a_{ij}\right ] $$
</div>
```

便可得到想要的效果

<div>
$$ A_{m\times n}=
\begin{bmatrix}
a_{11}& a_{12}& \cdots & a_{1n} \\
Expand All @@ -253,6 +252,90 @@ $$ F(\omega)=\int_{-\infty}^{+\infty} {f(t)e^{-i\omega t}dt} $$
a_{m1}& a_{m2}& \cdots & a_{mn}
\end{bmatrix}
=\left [ a_{ij}\right ] $$
</div>

公式也可以显示在行内。例如 `$f(x)=kx+b$` 就会输出 $f(x)=kx+b$,这是一个显示在行内的直线方程。

## Vue Markdown扩展

### 自定义容器

```
::: tip
这是一个提示
:::
::: warning
这是一个警告
:::
::: danger
这是一个危险警告
:::
::: details
这是一个详情块,在 IE / Edge 中不生效
:::
```

::: tip
这是一个提示
:::

::: warning
这是一个警告
:::

::: danger
这是一个危险警告
:::

::: details
这是一个详情块,在 IE / Edge 中不生效
:::

### 代码块中的行高亮

````
```js {1,4,6-7}
export default { // Highlighted
data () {
return {
msg: `Highlighted!
This line isn't highlighted,
but this and the next 2 are.`,
motd: 'VuePress is awesome',
lorem: 'ipsum',
}
}
}
```
````

```js {1,4,6-7}
export default { // Highlighted
data () {
return {
msg: `Highlighted!
This line isn't highlighted,
but this and the next 2 are.`,
motd: 'VuePress is awesome',
lorem: 'ipsum',
}
}
}
```

## Frontmatter

- title 标题
- date 日期
- update 更新日趋
- tags 标签
- categories 分类
- aplayer 播放器 boolean
- cover 封面 url
- layout 样式
- top 置顶级别 数字越小越高
- toc 是否显示目录 boolean
- aside 是否显示右侧文章导航栏
- codeHeightLimit 代码块高度限制 int
1 change: 1 addition & 0 deletions pages/posts/初中生活有感.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ date: 2022-12-01 10:17:33
tags:
- 胡言乱语
password: qwertyuiop
aplayer: true
---

> 我用了一个很大的标题 不过你要是看了tag的话 也就知道:我就随便写写
Expand Down
4 changes: 2 additions & 2 deletions valaxy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineValaxyConfig<UserThemeConfig>({
{
name: '我的小伙伴们',
url: '/links/',
icon: 'i-iconamoon-comment-dots',
icon: 'i-iconamoon:comment-dots',
color: '#4783ff',
},
],
Expand All @@ -38,7 +38,7 @@ export default defineValaxyConfig<UserThemeConfig>({
since: 2022,
icon: {
enable: true,
name: 'i-mdi-github',
name: 'i-mdi:github',
animated: false,
color: '#0078E7',
url: 'https://github.com/myp0402',
Expand Down

0 comments on commit e9b56b3

Please sign in to comment.