app/assets/markdown.html-CfG7I8QY.js

6 lines
18 KiB
JavaScript
Raw Normal View History

import{_ as p}from"./plugin-vue_export-helper-DlAUqK2U.js";import{r as l,o as c,c as u,e as m,a as e,b as n,d as t,w as r,n as _,g as k,f as g}from"./app-DJ5ILVPY.js";const f={},v=e("p",null,"VuePress 主要从 Markdown 文件生成页面。因此,你可以使用它轻松生成文档或博客站点。",-1),w=e("p",null,"你应该创建和编写 Markdown 文件,以便 VuePress 可以根据文件结构将它们转换为不同的页面。",-1),b=e("h2",{id:"markdown-介绍",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#markdown-介绍"},[e("span",null,"Markdown 介绍")])],-1),x={href:"https://theme-hope.vuejs.press/zh/cookbook/markdown/",target:"_blank",rel:"noopener noreferrer"},j={href:"https://theme-hope.vuejs.press/zh/cookbook/markdown/demo.html",target:"_blank",rel:"noopener noreferrer"},M=e("h2",{id:"markdown-配置",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#markdown-配置"},[e("span",null,"Markdown 配置")])],-1),y=e("p",null,"VuePress 通过 Frontmatter 为每个 Markdown 页面引入配置。",-1),z={class:"hint-container info"},V=e("p",{class:"hint-container-title"},"相关信息",-1),P={href:"https://theme-hope.vuejs.press/zh/cookbook/vuepress/page.html#front-matter",target:"_blank",rel:"noopener noreferrer"},E=e("h2",{id:"markdown-扩展",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#markdown-扩展"},[e("span",null,"Markdown 扩展")])],-1),A={href:"https://github.com/markdown-it/markdown-it",target:"_blank",rel:"noopener noreferrer"},B={href:"https://github.com/markdown-it/markdown-it#syntax-extensions",target:"_blank",rel:"noopener noreferrer"},T=e("h3",{id:"vuepress-扩展",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#vuepress-扩展"},[e("span",null,"VuePress 扩展")])],-1),C=e("p",null,"为了丰富文档写作VuePress 对 Markdown 语法进行了扩展。",-1),D={href:"https://theme-hope.vuejs.press/zh/cookbook/vuepress/markdown.html",target:"_blank",rel:"noopener noreferrer"},N=e("h3",{id:"主题扩展",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#主题扩展"},[e("span",null,"主题扩展")])],-1),F={href:"https://plugin-md-enhance.vuejs.press/zh/",target:"_blank",rel:"noopener noreferrer"},H=e("code",null,"vuepress-plugin-md-enhance",-1),I=g(`<h4 id="提示容器" tabindex="-1"><a class="header-anchor" href="#提示容器"><span>提示容器</span></a></h4><div><p>安全的在 Markdown 中使用 {{ variable }}。</p></div><div class="hint-container info"><p class="hint-container-title">自定义标题</p><p>信息容器,包含 <code>代码</code> 与 <a href="#%E6%8F%90%E7%A4%BA%E5%AE%B9%E5%99%A8">链接</a>。</p><div class="language-javascript line-numbers-mode" data-ext="js" data-title="js"><pre class="language-javascript"><code><span class="token keyword">const</span> a <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div></div><div class="hint-container tip"><p class="hint-container-title"></p><p></p></div><div class="hint-container warning"><p class="hint-container-title"></p><p></p></div><div class="hint-container caution"><p class="hint-container-title"></p><p></p></div><details class="hint-container details"><summary></summary><p></p></details>`,7),R={href:"https://theme-hope.vuejs.press/zh/guide/markdown/hint.html",target:"_blank",rel:"noopener noreferrer"},$=e("h4",{id:"",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#"},[e("span",null,"")])],-1),S=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh","data-title":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[e("span",{class:"token function"},"pnpm"),n(),e("span",{class:"token function"},"add"),n(),e("span",{class:"token parameter variable"},"-D"),n(` vuepress-theme-hope
`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"})])],-1),Z=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh","data-title":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[e("span",{class:"token function"},"yarn"),n(),e("span",{class:"token function"},"add"),n(),e("span",{class:"token parameter variable"},"-D"),n(` vuepress-theme-hope
`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"})])],-1),L=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh","data-title":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[e("span",{class:"token function"},"npm"),n(" i "),e("span",{class:"token parameter variable"},"-D"),n(` vuepress-theme-hope
`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"})])],-1),O={href:"https://theme-hope.vuejs.press/zh/guide/markdown/code-tabs.html",target:"_blank",rel:"noopener noreferrer"},J=e("h4",{id:"上下角标",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#上下角标"},[e("span",null,"上下角标")])],-1),K=e("p",null,[n("19"),e("sup",null,"th"),n(" H"),e("sub",null,"2"),n("O")],-1),W={href:"https://theme-hope.vuejs.press/zh/guide/markdown/sup-sub.html",target:"_blank",rel:"noopener noreferrer"},q=e("h4",{id:"自定义对齐",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#自定义对齐"},[e("span",null,"自定义对齐")])],-1),G=e("div",{style:{"text-align":"center"}},[e("p",null,"我是居中的")],-1),Q=e("div",{style:{"text-align":"right"}},[e("p",null,"我在右对齐")],-1),U={href:"https://theme-hope.vuejs.press/zh/guide/markdown/align.html",target:"_blank",rel:"noopener noreferrer"},X=e("h4",{id:"attrs",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#attrs"},[e("span",null,"Attrs")])],-1),Y=e("p",null,[n("一个拥有 ID 的 "),e("strong",{id:"word"},"单词"),n("。")],-1),ee={href:"https://theme-hope.vuejs.press/zh/guide/markdown/attrs.html",target:"_blank",rel:"noopener noreferrer"},ne=e("h4",{id:"脚注",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#脚注"},[e("span",null,"脚注")])],-1),te=e("p",null,[n("此文字有脚注"),e("a",{href:"%E8%BF%99%E6%98%AF%E8%84%9A%E6%B3%A8%E5%86%85%E5%AE%B9"},"^first"),n(".")],-1),se={href:"https://theme-hope.vuejs.press/zh/guide/markdown/footnote.html",target:"_blank",rel:"noopener noreferrer"},re=e("h4",{id:"标记",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#标记"},[e("span",null,"标记")])],-1),ae=e("p",null,[n("你可以标记 "),e("mark",null,"重要的内容"),n(" 。")],-1),oe={href:"https://theme-hope.vuejs.press/zh/guide/markdown/mark.html",target:"_blank",rel:"noopener noreferrer"},le=e("h4",{id:"任务列表",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#任务列表"},[e("span",null,"任务列表")])],-1),he=e("li",null,[e("p",null,"[x] 计划 1")],-1),ie=e("li",null,[e("p",null,"[ ] 计划 2")],-1),de={href:"https://theme-hope.vuejs.press/zh/guide/markdown/tasklist.html",target:"_blank",rel:"noopener noreferrer"},pe=e("h3",{id:"图片增强",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#图片增强"},[e("span",null,"图片增强")])],-1),ce=e("p",null,"支持为图片设置颜色模式和大小",-1),ue={href:"https://theme-hope.vuejs.press/zh/guide/markdown/image.html",target:"_blank",rel:"noopener noreferrer"},me=e("h4",{id:"组件",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#组件"},[e("span",null,"组件")])],-1),_e={href:"https://theme-hope.vuejs.press/zh/guide/markdown/component.html",target:"_blank",rel:"noopener noreferrer"},ke=e("h4",{id:"导入文件",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#导入文件"},[e("span",null,"导入文件")])],-1),ge={href:"https://theme-hope.vuejs.press/zh/guide/markdown/include.html",target:"_blank",rel:"noopener noreferrer"},fe=e("h4",{id:"样式化",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#样式化"},[e("span",null,"样式化")])],-1),ve={href:"https://theme-hope.vuejs.press/zh/guide/markdown/stylize.html",target:"_blank",rel:"noopener noreferrer"},we=e("h4",{id:"tex-语法",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#tex-语法"},[e("span",null,"Tex 语法")])],-1),be=e("p",null,"$$ \\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} $$",-1),xe={href:"https://theme-hope.vuejs.press/zh/guide/markdown/tex.html",target:"_blank",rel:"noopener noreferrer"},je=e("h4",{id:"图表",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#图表"},[e("span",null,"图表")])],-1),Me=e("iframe",{src:"https://plugin-md-enhance-demo.vuejs.press/snippet/chartjs.html",width:"100%",height:"450"},null,-1),ye={href:"https://theme