Skip to content
yltrcc的公开知识库yltrcc的公开知识库
博客主页
项目主页
使用指南
测试
主题文档open in new window
迭代历史
github icon
  • 主要功能与配置演示
    • 页面配置
      • Markdown 增强
        • Markdown 介绍
          • VuePress 扩展
            • 主题扩展
              • 一键启用
                • 自定义容器
                  • 代码块
                    • 自定义对齐
                      • 上下角标
                        • 脚注
                          • 标记
                            • 任务列表
                              • 图表
                                • 流程图
                                  • Mermaid
                                    • Tex 语法
                                      • 代码演示
                                        • 幻灯片
                                      • 组件禁用
                                        • 密码加密的文章

                                          Markdown 增强

                                          author iconyltrcccalendar icon2022年4月20日category icon
                                          • 使用指南
                                          tag icon
                                          • markdown
                                          timer icon大约 3 分钟

                                          此页内容
                                          • Markdown 介绍
                                          • VuePress 扩展
                                          • 主题扩展
                                            • 一键启用
                                            • 自定义容器
                                            • 代码块
                                            • 自定义对齐
                                            • 上下角标
                                            • 脚注
                                            • 标记
                                            • 任务列表
                                            • 图表
                                            • 流程图
                                            • Mermaid
                                            • Tex 语法
                                            • 代码演示
                                            • 幻灯片

                                          VuePress 的每个文档页面都是由 Markdown 渲染而成。所以你需要通过在相应路径创建编写 Markdown 建立你的文档或博客页面。

                                          # Markdown 介绍

                                          如果你是一个新手,还不会编写 Markdown,请先阅读 Markdown 介绍open in new window 和 Markdown 演示open in new window。

                                          Frontmatter

                                          Frontmatter 是 VuePress 中很重要的一个概念,如果你不了解它,你需要阅读 Frontmatter 介绍open in new window。

                                          # VuePress 扩展

                                          为了丰富文档写作,VuePress 对 Markdown 语法进行了扩展。

                                          关于这些扩展,请阅读 VuePress 中的 Markdown 扩展open in new window。

                                          # 主题扩展

                                          # 一键启用

                                          你可以设置 themeconfig.plugins.htmlEnhance.enableAll 启用 md-enhanceopen in new window 插件的所有功能。

                                          module.exports = {
                                            themeConfig: {
                                              plugins: {
                                                mdEnhance: {
                                                  enableAll: true,
                                                },
                                              },
                                            },
                                          };
                                          


                                           
                                           
                                           




                                          1
                                          2
                                          3
                                          4
                                          5
                                          6
                                          7
                                          8
                                          9

                                          # 自定义容器

                                          安全的在 Markdown 中使用 {{ variable }}。

                                          自定义标题

                                          信息容器,包含 代码 与 链接。

                                          const a = 1;
                                          
                                          1

                                          自定义标题

                                          提示容器

                                          自定义标题

                                          警告容器

                                          自定义标题

                                          危险容器

                                          自定义标题

                                          详情容器

                                          代码
                                          ::: v-pre
                                          
                                          安全的在 Markdown 中使用 {{ variable }}。
                                          
                                          :::
                                          
                                          ::: info 自定义标题
                                          
                                          信息容器
                                          
                                          :::
                                          
                                          ::: tip 自定义标题
                                          
                                          提示容器
                                          
                                          :::
                                          
                                          ::: warning 自定义标题
                                          
                                          警告容器
                                          
                                          :::
                                          
                                          ::: danger 自定义标题
                                          
                                          危险容器
                                          
                                          :::
                                          
                                          ::: details 自定义标题
                                          
                                          详情容器
                                          
                                          :::
                                          
                                          1
                                          2
                                          3
                                          4
                                          5
                                          6
                                          7
                                          8
                                          9
                                          10
                                          11
                                          12
                                          13
                                          14
                                          15
                                          16
                                          17
                                          18
                                          19
                                          20
                                          21
                                          22
                                          23
                                          24
                                          25
                                          26
                                          27
                                          28
                                          29
                                          30
                                          31
                                          32
                                          33
                                          34
                                          35
                                          • 查看详情open in new window

                                          # 代码块

                                          yarn add -D vuepress-theme-hope
                                          
                                          1
                                          npm i -D vuepress-theme-hope
                                          
                                          1
                                          • 查看详情open in new window

                                          # 自定义对齐

                                          我是居中的

                                          我在右对齐

                                          • 查看详情open in new window

                                          # 上下角标

                                          19th H2O

                                          • 查看详情open in new window

                                          # 脚注

                                          此文字有脚注[1].

                                          • 查看详情open in new window

                                          # 标记

                                          你可以标记 重要的内容 。

                                          • 查看详情open in new window

                                          # 任务列表

                                          • 查看详情open in new window

                                          # 图表

                                          一个散点图案例
                                          • 查看详情open in new window

                                          # 流程图

                                          • 查看详情open in new window

                                          # Mermaid

                                          loading icon
                                          • 查看详情open in new window

                                          # Tex 语法

                                          ∂r∂ωr(yωω)=(yωω){(log⁡y)r+∑i=1r(−1)ir⋯(r−i+1)(log⁡y)r−iωi}\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right) = \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\} ∂ωr∂r​(ωyω​)=(ωyω​){(logy)r+i=1∑r​ωi(−1)ir⋯(r−i+1)(logy)r−i​}

                                          • 查看详情open in new window

                                          # 代码演示

                                          <h1>VuePress Theme Hope</h1>
                                          <p><span id="very">非常</span>强大!</p>
                                          
                                          1
                                          2
                                          document.querySelector("#very").addEventListener("click", () => {
                                            alert("非常强大");
                                          });
                                          
                                          1
                                          2
                                          3
                                          span {
                                            color: red;
                                          }
                                          
                                          1
                                          2
                                          3
                                          一个普通 Demo
                                          • 查看详情open in new window

                                          # 幻灯片

                                          • 查看详情open in new window

                                          1. 这是脚注内容 ↩︎

                                          edit icon编辑此页open in new window
                                          上次编辑于: 2022/4/20 04:20:10
                                          贡献者: yltrcc
                                          上一页
                                          页面配置
                                          下一页
                                          组件禁用
                                          主题:vuepress-theme-hope
                                          Copyright © 2022 yltrcc