import{_ as e,c as t,a as s,o as n}from"./app-Dgsdh8A6.js";const i={};function l(o,a){return n(),t("div",null,a[0]||(a[0]=[s(`<h1 id="表达式渲染" tabindex="-1"><a class="header-anchor" href="#表达式渲染"><span>表达式渲染</span></a></h1><h2 id="latex" tabindex="-1"><a class="header-anchor" href="#latex"><span>LaTeX</span></a></h2><blockquote><p>https://api.bilibili.com/x/web-frontend/mathjax/tex</p></blockquote><p><em>请求方法: GET</em></p><p>暂未发现对跨源使用 <code>&lt;img&gt;</code> 标签使用该接口的限制</p><p><strong>URL 参数:</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>formula</td><td>string</td><td>公式</td><td>非必要</td><td>LaTeX</td></tr></tbody></table><p><strong>SVG 回复:</strong></p><p>一个完整的 SVG (image/svg+xml) 文件, 可直接用于 HTML <code>&lt;img&gt;</code> 或 Markdown <code>![]()</code></p><p><strong>示例:</strong></p><div class="language-markdown line-numbers-mode" data-highlighter="shiki" data-ext="markdown" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-markdown"><span class="line"><span style="color:#D4D4D4;">![](</span><span style="color:#D4D4D4;text-decoration:underline;">https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=\\pi=3.14159265358979323846...</span><span style="color:#D4D4D4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#D4D4D4;">![](</span><span style="color:#D4D4D4;text-decoration:underline;">https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=E=mc^2</span><span style="color:#D4D4D4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#D4D4D4;">![](</span><span style="color:#D4D4D4;text-decoration:underline;">https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=\\ce{Fe+%2B+CuSO4+=+Cu+%2B+FeSO4}</span><span style="color:#D4D4D4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#D4D4D4;">![](</span><span style="color:#D4D4D4;text-decoration:underline;">https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=\\ce{N2(g)+%2B+3H2(g)+&lt;=&gt;[\\text{高温、高压、催化剂}]+2NH3(g)}</span><span style="color:#D4D4D4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#D4D4D4;">![](</span><span style="color:#D4D4D4;text-decoration:underline;">https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=S=\\frac{1}{3}Sh</span><span style="color:#D4D4D4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#D4D4D4;">![](</span><span style="color:#D4D4D4;text-decoration:underline;">https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=y+=+\\frac{1}{\\dfrac{1}{x}+%2B+1}</span><span style="color:#D4D4D4;"> )</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看渲染结果:</summary><p><img src="https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=\\pi=3.14159265358979323846..." alt=""></p><p><img src="https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=E=mc^2" alt=""></p><p><img src="https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=\\ce{Fe+%2B+CuSO4+=+Cu+%2B+FeSO4}" alt=""></p><p><img src="https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=\\ce{N2(g)+%2B+3H2(g)+&lt;=&gt;[\\text{高温、高压、催化剂}]+2NH3(g)}" alt=""></p><p><img src="https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=S=\\frac{1}{3}Sh" alt=""></p><p><img src="https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=y+=+\\frac{1}{\\dfrac{1}{x}+%2B+1}" alt=""></p></details>`,12)]))}const p=e(i,[["render",l]]),c=JSON.parse('{"path":"/docs/misc/mathjax.html","title":"表达式渲染","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1753153841000,"contributors":[{"name":"SessionHu","username":"SessionHu","email":"102411014+SessionHu@users.noreply.github.com","commits":1,"url":"https://github.com/SessionHu"}],"changelog":[{"hash":"01cfdd46f07af5e246c77dada13d3d59d6071c6b","time":1753153841000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"feat: add mathjax tex"}]},"filePathRelative":"docs/misc/mathjax.md"}');export{p as comp,c as data};
