Skip to content

Commit

Permalink
🎨 Improve HTML to Markdown #209
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 10, 2024
1 parent 82d460d commit 023a913
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions h2m.go
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,10 @@ func (lute *Lute) genASTByDOM(n *html.Node, tree *parse.Tree) {
defer tree.Context.ParentTip()
defer tree.Context.ParentTip()
case atom.Summary:
if ast.NodeList != tree.Context.Tip.Type || nil == n.Parent || atom.Details != n.Parent.DataAtom {
return
}

li := &ast.Node{Type: ast.NodeListItem}
li.ListData = &ast.ListData{Marker: []byte("*"), BulletChar: '*'}
node.Type = ast.NodeParagraph
Expand Down
2 changes: 1 addition & 1 deletion javascript/lute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/lute.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/h2m_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

var html2MdTests = []parseTest{

{"188", "<h1 id=\"43c05a2c-5f78-43c1-a48e-12813034c9bf\" class=\"\">特殊段落</h1><h2 id=\"a1347ee9-a6db-4790-8c15-b9244d37cc56\" class=\"\">1.代码</h2><pre id=\"ac4ab4a8-d2f8-48e4-90e6-9d4a986f93fc\" class=\"code\"><code class=\"language-bash\"># Bash 安装zsh\n $ sudo apt install zsh\n \n # 配置ohmyzsh\n $ sh -c \"$(curl -fsSL &lt;https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh&gt;)\"\n \n # 配置ohmyzsh插件\n # zsh-autosuggestions\n $ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions\n \n // 启用插件\n $ vim .zshrc\n plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)</code></pre><ul><li><summary>其他更多语言</summary><pre id=\"9f8fa36a-b592-4974-b4cc-29724d54c63a\" class=\"code\"><code class=\"language-bash\" style=\"white-space:pre-wrap;word-break:break-all\">ps -ef | grep java | awk '{print $2}' | xargs kill -9</code></pre><pre id=\"c0c14d9f-2167-422e-b266-4fdf168d5d8b\" class=\"code\"><code class=\"language-java\" style=\"white-space:pre-wrap;word-break:break-all\">@Test\n public void test11() {\n \n long start = System.currentTimeMillis();\n int a = 0;\n for(int i=0;i&lt;1000000000;i++){\n try {\n a++;\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n long useTime = System.currentTimeMillis()-start;\n System.out.println(\"useTime:\"+useTime);\n }</code></pre><pre id=\"8473507e-5d42-45d4-a7e6-9dc522b744e1\" class=\"code\"><code class=\"language-python\">#!/usr/bin/python3\n import json\n \n # Python 字典类型转换为 JSON 对象\n data = {\n 'no' : 1,\n 'name' : 'hello',\n 'url' : 'http://tangly1024.com'\n }\n \n json_str = json.dumps(data)\n print (\"Python 原始数据:\", repr(data))\n print (\"JSON 对象:\", json_str)</code></pre></li></ul><h2 id=\"5eaba42c-181d-4dad-8c21-1a87c1dd5fff\" class=\"\">2.公式</h2><ul><li style=\"list-style-type:disc\">数学公式<figure id=\"d67c5ed2-200c-4e30-a8ba-62378b6b1488\" class=\"equation\"><div class=\"equation-container\"><span class=\"katex-display\"><annotation encoding=\"application/x-tex\">f\\left(\\left[\\frac{1+\\{x, y\\}}{\\left(\\frac{x}{y}+\\frac{y}{x}\\right)(u+1)}+a\\right]^{3 / 2}\\right)\\tag{行标}</annotation></span></div></figure><figure id=\"2d9f9109-ff37-4185-84b9-ae5a9f8a50b6\" class=\"equation\"><div class=\"equation-container\"><span class=\"katex-display\"><annotation encoding=\"application/x-tex\">\\tau_{xy}=-\\tau_{yx}\\tau_{xz}=-\\tau_{zx}\\tau_{yz}=-\\tau{zy}</annotation></span></div></figure></li><li style=\"list-style-type:disc\">化学方程<p id=\"1b13a7ba-c335-4def-bc48-1ad61bc9f038\" class=\"\"><span data-token-index=\"0\" contenteditable=\"false\" class=\"notion-text-equation-token\" style=\"user-select:all;-webkit-user-select:all;-moz-user-select:all\"><span></span><span><annotation encoding=\"application/x-tex\">\\ce{2H2O-&gt;2H2 + O2}\n </annotation></span><span></span></span></p></li></ul><ul><li><summary>其他更多公式</summary><figure id=\"dd0e5601-0322-464e-8f04-e108e2d9fea4\" class=\"equation\"><div class=\"equation-container\"><span class=\"katex-display\"><annotation encoding=\"application/x-tex\">\\begin{aligned}\n AACD \\Rightarrow AAAD &amp;= \\frac 1 3\\\\ \n AACD \\Rightarrow AACD &amp;= \\frac 1 3 + \\frac 1 6 = \\frac 1 2 \\\\ \n AACD \\Rightarrow AACC &amp;= \\frac 1 6 \\end{aligned}</annotation></span></div></figure><figure id=\"0596cc73-c9f2-4f14-9e7e-6acfd84fd307\" class=\"equation\"><div class=\"equation-container\"><span class=\"katex-display\"><annotation encoding=\"application/x-tex\">\\begin{bmatrix}\n c_{0}&amp;c_{n-1}&amp;c_{n-2}&amp;\\cdots &amp;c_{1}\\\\\n c_{1}&amp;c_{0}&amp;c_{n-1} &amp; \\cdots &amp;c_{2}\\\\\n c_{2}&amp;c_{1}&amp;c_{0}&amp;\\cdots &amp;c_3 \\\\\n \\vdots &amp;\\vdots&amp; \\vdots&amp;\\ddots &amp;\\vdots \\\\\n c_{n-1}&amp;c_{n-2}&amp;c_{n-3}&amp;\\dots &amp;c_{0}\n \\end{bmatrix}</annotation></span></div></figure><figure id=\"e33bfe63-f618-463a-beda-eda0882fb89d\" class=\"equation\"><div class=\"equation-container\"><span class=\"katex-display\"><annotation encoding=\"application/x-tex\">\\begin{aligned} \\sin 2\\theta &amp; = 2\\sin \\theta \\cos \\theta \\\\ &amp; = \\cfrac{2 \\tan \\theta}{1+\\tan^2 \\theta} \\end{aligned}</annotation></span></div></figure><p id=\"2a9ce3d2-d667-402e-be83-a9986c1401f2\" class=\"\">\n </p><figure id=\"1971da03-ef04-42f6-8a85-31b47dfc459b\" class=\"equation\"><div class=\"equation-container\"><span class=\"katex-display\"><annotation encoding=\"application/x-tex\">AACD\\Rightarrow \\left\\{\\begin{matrix}\n 第1次取值 &amp; 第2次取值 &amp; 概率 &amp; 最终状态\\\\\n A &amp; C,D &amp;= \\frac 1 2 \\times \\frac 2 3= \\frac 1 3 &amp;\\Rightarrow AAAD \\\\ \n A &amp; A &amp;= \\frac 1 2 \\times \\frac 1 3= \\frac 1 6 &amp;\\Rightarrow AACD \\\\ \n C,D &amp; A &amp;= 2 \\times \\frac 1 4 \\times \\frac 2 3= \\frac 1 3 &amp;\\Rightarrow CCAD \\\\ \n C,D &amp; C,D &amp;= 2 \\times \\frac 1 4 \\times \\frac 1 3= \\frac 1 6 &amp;\\Rightarrow CCAA\n \\end{matrix}\\right.&nbsp;</annotation></span></div></figure></li></ul>", "# 特殊段落\n\n## 1.代码\n\n```bash\n# Bash 安装zsh\n $ sudo apt install zsh\n \n # 配置ohmyzsh\n $ sh -c \"$(curl -fsSL <https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh>)\"\n \n # 配置ohmyzsh插件\n # zsh-autosuggestions\n $ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions\n \n // 启用插件\n $ vim .zshrc\n plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)\n```\n\n* ```bash\n ps -ef | grep java | awk '{print $2}' | xargs kill -9\n ```\n\n ```java\n @Test\n public void test11() {\n \n long start = System.currentTimeMillis();\n int a = 0;\n for(int i=0;i<1000000000;i++){\n try {\n a++;\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n long useTime = System.currentTimeMillis()-start;\n System.out.println(\"useTime:\"+useTime);\n }\n ```\n\n ```python\n #!/usr/bin/python3\n import json\n \n # Python 字典类型转换为 JSON 对象\n data = {\n 'no' : 1,\n 'name' : 'hello',\n 'url' : 'http://tangly1024.com'\n }\n \n json_str = json.dumps(data)\n print (\"Python 原始数据:\", repr(data))\n print (\"JSON 对象:\", json_str)\n ```\n\n## 2.公式\n\n* 数学公式\n $$\n f\\left(\\left[\\frac{1+\\{x, y\\}}{\\left(\\frac{x}{y}+\\frac{y}{x}\\right)(u+1)}+a\\right]^{3 / 2}\\right)\\tag{行标}\n $$\n\n\n\n $$\n \\tau_{xy}=-\\tau_{yx}\\tau_{xz}=-\\tau_{zx}\\tau_{yz}=-\\tau{zy}\n $$\n* 化学方程\\\\ce{2H2O->2H2 + O2}\n\n* $$\n \\begin{aligned}\n AACD \\Rightarrow AAAD &= \\frac 1 3\\\\ \n AACD \\Rightarrow AACD &= \\frac 1 3 + \\frac 1 6 = \\frac 1 2 \\\\ \n AACD \\Rightarrow AACC &= \\frac 1 6 \\end{aligned}\n $$\n\n\n $$\n \\begin{bmatrix}\n c_{0}&c_{n-1}&c_{n-2}&\\cdots &c_{1}\\\\\n c_{1}&c_{0}&c_{n-1} & \\cdots &c_{2}\\\\\n c_{2}&c_{1}&c_{0}&\\cdots &c_3 \\\\\n \\vdots &\\vdots& \\vdots&\\ddots &\\vdots \\\\\n c_{n-1}&c_{n-2}&c_{n-3}&\\dots &c_{0}\n \\end{bmatrix}\n $$\n\n\n $$\n \\begin{aligned} \\sin 2\\theta & = 2\\sin \\theta \\cos \\theta \\\\ & = \\cfrac{2 \\tan \\theta}{1+\\tan^2 \\theta} \\end{aligned}\n $$\n\n\n $$\n AACD\\Rightarrow \\left\\{\\begin{matrix}\n 第1次取值 & 第2次取值 & 概率 & 最终状态\\\\\n A & C,D &= \\frac 1 2 \\times \\frac 2 3= \\frac 1 3 &\\Rightarrow AAAD \\\\ \n A & A &= \\frac 1 2 \\times \\frac 1 3= \\frac 1 6 &\\Rightarrow AACD \\\\ \n C,D & A &= 2 \\times \\frac 1 4 \\times \\frac 2 3= \\frac 1 3 &\\Rightarrow CCAD \\\\ \n C,D & C,D &= 2 \\times \\frac 1 4 \\times \\frac 1 3= \\frac 1 6 &\\Rightarrow CCAA\n \\end{matrix}\\right.\n $$\n"},
{"187", "$foo$", "\\$foo\\$\n"},
{"186", "<span>$foo$</span>", "$foo$\n"},
{"185", "<p data-pid=\"Ir_Zz_Dw\"><span class=\"ztext-math\" data-eeimg=\"1\" data-tex=\"\\ \\\\ h_0p_0=s'_0(x) \\\\ (h_0+h_1)(\\frac{p_0}{2}+\\frac{p_1}{2}+\\frac{p_2}{2})=s'_1(x)\\\\ (h_0-h_1)(\\frac{p_0}{2}-\\frac{p_1}{2}+\\frac{p_2}{2} )=s'_2(x) \\\\ h_1p_2\"><span></span><span><span class=\"MathJax_Preview\" style=\"color: inherit;\"></span><span class=\"MathJax_SVG\" id=\"MathJax-Element-58-Frame\" tabindex=\"0\" style=\"font-size: 100%; display: inline-block; position: relative;\" data-mathml=\"<math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;><mtext>&amp;#xA0;</mtext><mspace linebreak=&quot;newline&quot; /><msub><mi>h</mi><mn>0</mn></msub><msub><mi>p</mi><mn>0</mn></msub><mo>=</mo><msubsup><mi>s</mi><mn>0</mn><mo>&amp;#x2032;</mo></msubsup><mo stretchy=&quot;false&quot;>(</mo><mi>x</mi><mo stretchy=&quot;false&quot;>)</mo><mspace linebreak=&quot;newline&quot; /><mo stretchy=&quot;false&quot;>(</mo><msub><mi>h</mi><mn>0</mn></msub><mo>+</mo><msub><mi>h</mi><mn>1</mn></msub><mo stretchy=&quot;false&quot;>)</mo><mo stretchy=&quot;false&quot;>(</mo><mfrac><msub><mi>p</mi><mn>0</mn></msub><mn>2</mn></mfrac><mo>+</mo><mfrac><msub><mi>p</mi><mn>1</mn></msub><mn>2</mn></mfrac><mo>+</mo><mfrac><msub><mi>p</mi><mn>2</mn></msub><mn>2</mn></mfrac><mo stretchy=&quot;false&quot;>)</mo><mo>=</mo><msubsup><mi>s</mi><mn>1</mn><mo>&amp;#x2032;</mo></msubsup><mo stretchy=&quot;false&quot;>(</mo><mi>x</mi><mo stretchy=&quot;false&quot;>)</mo><mspace linebreak=&quot;newline&quot; /><mo stretchy=&quot;false&quot;>(</mo><msub><mi>h</mi><mn>0</mn></msub><mo>&amp;#x2212;</mo><msub><mi>h</mi><mn>1</mn></msub><mo stretchy=&quot;false&quot;>)</mo><mo stretchy=&quot;false&quot;>(</mo><mfrac><msub><mi>p</mi><mn>0</mn></msub><mn>2</mn></mfrac><mo>&amp;#x2212;</mo><mfrac><msub><mi>p</mi><mn>1</mn></msub><mn>2</mn></mfrac><mo>+</mo><mfrac><msub><mi>p</mi><mn>2</mn></msub><mn>2</mn></mfrac><mo stretchy=&quot;false&quot;>)</mo><mo>=</mo><msubsup><mi>s</mi><mn>2</mn><mo>&amp;#x2032;</mo></msubsup><mo stretchy=&quot;false&quot;>(</mo><mi>x</mi><mo stretchy=&quot;false&quot;>)</mo><mspace linebreak=&quot;newline&quot; /><msub><mi>h</mi><mn>1</mn></msub><msub><mi>p</mi><mn>2</mn></msub></math>\" role=\"presentation\"><svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"79.691ex\" height=\"14.836ex\" viewBox=\"0 -51.9 34311.3 6387.5\" role=\"img\" focusable=\"false\" aria-hidden=\"true\" style=\"vertical-align: -14.715ex; max-width: 68800px;\"><g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\"><g transform=\"translate(0,-1200)\"><use xlink:href=\"#MJMATHI-68\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-30\" x=\"815\" y=\"-213\"></use><g transform=\"translate(1030,0)\"><use xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-30\" x=\"712\" y=\"-213\"></use></g><use xlink:href=\"#MJMAIN-3D\" x=\"2265\" y=\"0\"></use><g transform=\"translate(3321,0)\"><use xlink:href=\"#MJMATHI-73\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-2032\" x=\"663\" y=\"445\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-30\" x=\"663\" y=\"-435\"></use></g><use xlink:href=\"#MJMAIN-28\" x=\"4245\" y=\"0\"></use><use xlink:href=\"#MJMATHI-78\" x=\"4634\" y=\"0\"></use><use xlink:href=\"#MJMAIN-29\" x=\"5207\" y=\"0\"></use></g><g transform=\"translate(0,-2846)\"><use xlink:href=\"#MJMAIN-28\" x=\"0\" y=\"0\"></use><g transform=\"translate(389,0)\"><use xlink:href=\"#MJMATHI-68\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-30\" x=\"815\" y=\"-213\"></use></g><use xlink:href=\"#MJMAIN-2B\" x=\"1642\" y=\"0\"></use><g transform=\"translate(2642,0)\"><use xlink:href=\"#MJMATHI-68\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-31\" x=\"815\" y=\"-213\"></use></g><use xlink:href=\"#MJMAIN-29\" x=\"3673\" y=\"0\"></use><use xlink:href=\"#MJMAIN-28\" x=\"4062\" y=\"0\"></use><g transform=\"translate(4452,0)\"><g transform=\"translate(120,0)\"><rect stroke=\"none\" width=\"796\" height=\"60\" x=\"0\" y=\"220\"></rect><g transform=\"translate(60,577)\"><use transform=\"scale(0.707)\" xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.5)\" xlink:href=\"#MJMAIN-30\" x=\"712\" y=\"-326\"></use></g><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"313\" y=\"-531\"></use></g></g><use xlink:href=\"#MJMAIN-2B\" x=\"5711\" y=\"0\"></use><g transform=\"translate(6489,0)\"><g transform=\"translate(342,0)\"><rect stroke=\"none\" width=\"796\" height=\"60\" x=\"0\" y=\"220\"></rect><g transform=\"translate(60,566)\"><use transform=\"scale(0.707)\" xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.5)\" xlink:href=\"#MJMAIN-31\" x=\"712\" y=\"-326\"></use></g><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"313\" y=\"-531\"></use></g></g><use xlink:href=\"#MJMAIN-2B\" x=\"7971\" y=\"0\"></use><g transform=\"translate(8749,0)\"><g transform=\"translate(342,0)\"><rect stroke=\"none\" width=\"796\" height=\"60\" x=\"0\" y=\"220\"></rect><g transform=\"translate(60,566)\"><use transform=\"scale(0.707)\" xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.5)\" xlink:href=\"#MJMAIN-32\" x=\"712\" y=\"-326\"></use></g><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"313\" y=\"-531\"></use></g></g><use xlink:href=\"#MJMAIN-29\" x=\"10009\" y=\"0\"></use><use xlink:href=\"#MJMAIN-3D\" x=\"10676\" y=\"0\"></use><g transform=\"translate(11732,0)\"><use xlink:href=\"#MJMATHI-73\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-2032\" x=\"663\" y=\"445\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-31\" x=\"663\" y=\"-435\"></use></g><use xlink:href=\"#MJMAIN-28\" x=\"12656\" y=\"0\"></use><use xlink:href=\"#MJMATHI-78\" x=\"13045\" y=\"0\"></use><use xlink:href=\"#MJMAIN-29\" x=\"13618\" y=\"0\"></use></g><g transform=\"translate(0,-4545)\"><use xlink:href=\"#MJMAIN-28\" x=\"0\" y=\"0\"></use><g transform=\"translate(389,0)\"><use xlink:href=\"#MJMATHI-68\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-30\" x=\"815\" y=\"-213\"></use></g><use xlink:href=\"#MJMAIN-2212\" x=\"1642\" y=\"0\"></use><g transform=\"translate(2642,0)\"><use xlink:href=\"#MJMATHI-68\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-31\" x=\"815\" y=\"-213\"></use></g><use xlink:href=\"#MJMAIN-29\" x=\"3673\" y=\"0\"></use><use xlink:href=\"#MJMAIN-28\" x=\"4062\" y=\"0\"></use><g transform=\"translate(4452,0)\"><g transform=\"translate(120,0)\"><rect stroke=\"none\" width=\"796\" height=\"60\" x=\"0\" y=\"220\"></rect><g transform=\"translate(60,577)\"><use transform=\"scale(0.707)\" xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.5)\" xlink:href=\"#MJMAIN-30\" x=\"712\" y=\"-326\"></use></g><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"313\" y=\"-531\"></use></g></g><use xlink:href=\"#MJMAIN-2212\" x=\"5711\" y=\"0\"></use><g transform=\"translate(6489,0)\"><g transform=\"translate(342,0)\"><rect stroke=\"none\" width=\"796\" height=\"60\" x=\"0\" y=\"220\"></rect><g transform=\"translate(60,566)\"><use transform=\"scale(0.707)\" xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.5)\" xlink:href=\"#MJMAIN-31\" x=\"712\" y=\"-326\"></use></g><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"313\" y=\"-531\"></use></g></g><use xlink:href=\"#MJMAIN-2B\" x=\"7971\" y=\"0\"></use><g transform=\"translate(8749,0)\"><g transform=\"translate(342,0)\"><rect stroke=\"none\" width=\"796\" height=\"60\" x=\"0\" y=\"220\"></rect><g transform=\"translate(60,566)\"><use transform=\"scale(0.707)\" xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.5)\" xlink:href=\"#MJMAIN-32\" x=\"712\" y=\"-326\"></use></g><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"313\" y=\"-531\"></use></g></g><use xlink:href=\"#MJMAIN-29\" x=\"10009\" y=\"0\"></use><use xlink:href=\"#MJMAIN-3D\" x=\"10676\" y=\"0\"></use><g transform=\"translate(11732,0)\"><use xlink:href=\"#MJMATHI-73\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-2032\" x=\"663\" y=\"445\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"663\" y=\"-435\"></use></g><use xlink:href=\"#MJMAIN-28\" x=\"12656\" y=\"0\"></use><use xlink:href=\"#MJMATHI-78\" x=\"13045\" y=\"0\"></use><use xlink:href=\"#MJMAIN-29\" x=\"13618\" y=\"0\"></use></g><g transform=\"translate(0,-6046)\"><use xlink:href=\"#MJMATHI-68\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-31\" x=\"815\" y=\"-213\"></use><g transform=\"translate(1030,0)\"><use xlink:href=\"#MJMATHI-70\" x=\"0\" y=\"0\"></use><use transform=\"scale(0.707)\" xlink:href=\"#MJMAIN-32\" x=\"712\" y=\"-213\"></use></g></g></g></svg><span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mtext>&nbsp;</mtext><mspace linebreak=\"newline\"></mspace><msub><mi>h</mi><mn>0</mn></msub><msub><mi>p</mi><mn>0</mn></msub><mo>=</mo><msubsup><mi>s</mi><mn>0</mn><mo>′</mo></msubsup><mo stretchy=\"false\">(</mo><mi>x</mi><mo stretchy=\"false\">)</mo><mspace linebreak=\"newline\"></mspace><mo stretchy=\"false\">(</mo><msub><mi>h</mi><mn>0</mn></msub><mo>+</mo><msub><mi>h</mi><mn>1</mn></msub><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">(</mo><mfrac><msub><mi>p</mi><mn>0</mn></msub><mn>2</mn></mfrac><mo>+</mo><mfrac><msub><mi>p</mi><mn>1</mn></msub><mn>2</mn></mfrac><mo>+</mo><mfrac><msub><mi>p</mi><mn>2</mn></msub><mn>2</mn></mfrac><mo stretchy=\"false\">)</mo><mo>=</mo><msubsup><mi>s</mi><mn>1</mn><mo>′</mo></msubsup><mo stretchy=\"false\">(</mo><mi>x</mi><mo stretchy=\"false\">)</mo><mspace linebreak=\"newline\"></mspace><mo stretchy=\"false\">(</mo><msub><mi>h</mi><mn>0</mn></msub><mo>−</mo><msub><mi>h</mi><mn>1</mn></msub><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">(</mo><mfrac><msub><mi>p</mi><mn>0</mn></msub><mn>2</mn></mfrac><mo>−</mo><mfrac><msub><mi>p</mi><mn>1</mn></msub><mn>2</mn></mfrac><mo>+</mo><mfrac><msub><mi>p</mi><mn>2</mn></msub><mn>2</mn></mfrac><mo stretchy=\"false\">)</mo><mo>=</mo><msubsup><mi>s</mi><mn>2</mn><mo>′</mo></msubsup><mo stretchy=\"false\">(</mo><mi>x</mi><mo stretchy=\"false\">)</mo><mspace linebreak=\"newline\"></mspace><msub><mi>h</mi><mn>1</mn></msub><msub><mi>p</mi><mn>2</mn></msub></math></span></span><script type=\"math/tex;mode=inline\" id=\"MathJax-Element-58\">\\ \\\\ h_0p_0=s'_0(x) \\\\ (h_0+h_1)(\\frac{p_0}{2}+\\frac{p_1}{2}+\\frac{p_2}{2})=s'_1(x)\\\\ (h_0-h_1)(\\frac{p_0}{2}-\\frac{p_1}{2}+\\frac{p_2}{2} )=s'_2(x) \\\\ h_1p_2</script><span class=\"tex2jax_ignore math-holder\">\\ \\\\ h_0p_0=s'_0(x) \\\\ (h_0+h_1)(\\frac{p_0}{2}+\\frac{p_1}{2}+\\frac{p_2}{2})=s'_1(x)\\\\ (h_0-h_1)(\\frac{p_0}{2}-\\frac{p_1}{2}+\\frac{p_2}{2} )=s'_2(x) \\\\ h_1p_2</span></span></span> </p>", "$$\n\\ \\\\ h_0p_0=s'_0(x) \\\\ (h_0+h_1)(\\frac{p_0}{2}+\\frac{p_1}{2}+\\frac{p_2}{2})=s'_1(x)\\\\ (h_0-h_1)(\\frac{p_0}{2}-\\frac{p_1}{2}+\\frac{p_2}{2} )=s'_2(x) \\\\ h_1p_2\n$$\n"},
Expand Down

0 comments on commit 023a913

Please sign in to comment.