1.9.2 修bug
This commit is contained in:
parent
79051ed280
commit
002d79a3b6
@ -16,10 +16,7 @@ __license__ = """MIT"""
|
|||||||
|
|
||||||
|
|
||||||
HEAD = (
|
HEAD = (
|
||||||
'<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>',
|
'<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>', # 渲染latex
|
||||||
'<link href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism.css" rel="stylesheet" />',
|
|
||||||
'<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>',
|
|
||||||
'<script src="https://cdn.jsdelivr.net/npm/prismjs/components/prism-yaml.min.js"></script>',
|
|
||||||
|
|
||||||
# mermaid
|
# mermaid
|
||||||
'<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>',
|
'<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>',
|
||||||
@ -27,14 +24,9 @@ HEAD = (
|
|||||||
' mermaid.initialize({startOnLoad:true});',
|
' mermaid.initialize({startOnLoad:true});',
|
||||||
'</script>',
|
'</script>',
|
||||||
|
|
||||||
# Highlight.js
|
'<link rel="stylesheet" href="../Static/styles.css">', # 代码高亮css
|
||||||
# '<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css">',
|
|
||||||
# '<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>',
|
|
||||||
# '<script>hljs.highlightAll();</script>',
|
|
||||||
|
|
||||||
'<link rel="stylesheet" href="../Static/styles.css">',
|
'<style>', # 强调css
|
||||||
|
|
||||||
'<style>',
|
|
||||||
' .block {',
|
' .block {',
|
||||||
' background-color: grey; /* 灰色背景 */',
|
' background-color: grey; /* 灰色背景 */',
|
||||||
' color: white; /* 白色文字 */',
|
' color: white; /* 白色文字 */',
|
||||||
|
31
README.html
31
README.html
@ -5,9 +5,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>UTF-8编码示例</title>
|
<title>UTF-8编码示例</title>
|
||||||
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
|
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism.css" rel="stylesheet" />
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/prismjs/components/prism-yaml.min.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
mermaid.initialize({startOnLoad:true});
|
mermaid.initialize({startOnLoad:true});
|
||||||
@ -86,6 +83,7 @@
|
|||||||
<li><a href="#4.2.2">4.2.2 Python</a></li>
|
<li><a href="#4.2.2">4.2.2 Python</a></li>
|
||||||
<li><a href="#4.2.3">4.2.3 Mermaid</a></li>
|
<li><a href="#4.2.3">4.2.3 Mermaid</a></li>
|
||||||
<li><a href="#4.2.4">4.2.4 shell</a></li>
|
<li><a href="#4.2.4">4.2.4 shell</a></li>
|
||||||
|
<li><a href="#4.2.5">4.2.5 latex</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -213,6 +211,33 @@
|
|||||||
<div class="codehilite"><pre><span></span><code class="shell"><span class="nb">cd</span><span class="w"> </span>../..
|
<div class="codehilite"><pre><span></span><code class="shell"><span class="nb">cd</span><span class="w"> </span>../..
|
||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
|
|
||||||
|
<h3 id="4.2.5">4.2.5 latex</h3>
|
||||||
|
<div class="codehilite"><pre><span></span><code class="latex"><span class="k">\documentclass</span><span class="nb">{</span>article<span class="nb">}</span>
|
||||||
|
<span class="k">\title</span><span class="nb">{</span>我的第一个LaTeX文档<span class="nb">}</span>
|
||||||
|
<span class="k">\author</span><span class="nb">{</span>作者姓名<span class="nb">}</span>
|
||||||
|
<span class="k">\date</span><span class="nb">{</span><span class="k">\today</span><span class="nb">}</span>
|
||||||
|
|
||||||
|
<span class="k">\begin</span><span class="nb">{</span>document<span class="nb">}</span>
|
||||||
|
|
||||||
|
<span class="k">\maketitle</span>
|
||||||
|
|
||||||
|
这是我的第一个LaTeX文档。它包含了一个标题、作者信息、日期和一个简单的正文部分。
|
||||||
|
|
||||||
|
<span class="k">\section</span><span class="nb">{</span>引言<span class="nb">}</span>
|
||||||
|
|
||||||
|
这是引言部分,可以简要介绍文档的主题和目的。
|
||||||
|
|
||||||
|
<span class="k">\section</span><span class="nb">{</span>正文<span class="nb">}</span>
|
||||||
|
|
||||||
|
这是正文部分,可以详细阐述你的观点或研究内容。你可以根据需要添加更多的章节和子章节。
|
||||||
|
|
||||||
|
<span class="k">\subsection</span><span class="nb">{</span>子章节示例<span class="nb">}</span>
|
||||||
|
|
||||||
|
这是一个子章节的示例,用于展示如何在LaTeX文档中创建层次结构。
|
||||||
|
|
||||||
|
<span class="k">\end</span><span class="nb">{</span>document<span class="nb">}</span>
|
||||||
|
</code></pre></div>
|
||||||
|
|
||||||
<h1 id="5">5 转义</h1>
|
<h1 id="5">5 转义</h1>
|
||||||
<p>\ </p>
|
<p>\ </p>
|
||||||
<p>\a </p>
|
<p>\a </p>
|
||||||
|
29
README.md
29
README.md
@ -151,6 +151,35 @@ graph TD
|
|||||||
cd ../..
|
cd ../..
|
||||||
```
|
```
|
||||||
|
|
||||||
|
4.2.5 latex
|
||||||
|
|
||||||
|
```latex
|
||||||
|
\documentclass{article}
|
||||||
|
\title{我的第一个LaTeX文档}
|
||||||
|
\author{作者姓名}
|
||||||
|
\date{\today}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\maketitle
|
||||||
|
|
||||||
|
这是我的第一个LaTeX文档。它包含了一个标题、作者信息、日期和一个简单的正文部分。
|
||||||
|
|
||||||
|
\section{引言}
|
||||||
|
|
||||||
|
这是引言部分,可以简要介绍文档的主题和目的。
|
||||||
|
|
||||||
|
\section{正文}
|
||||||
|
|
||||||
|
这是正文部分,可以详细阐述你的观点或研究内容。你可以根据需要添加更多的章节和子章节。
|
||||||
|
|
||||||
|
\subsection{子章节示例}
|
||||||
|
|
||||||
|
这是一个子章节的示例,用于展示如何在LaTeX文档中创建层次结构。
|
||||||
|
|
||||||
|
\end{document}
|
||||||
|
```
|
||||||
|
|
||||||
5 转义
|
5 转义
|
||||||
|
|
||||||
\\
|
\\
|
||||||
|
5
setup.py
5
setup.py
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="CrossDown",
|
name="CrossDown",
|
||||||
version="1.0.1",
|
version="2.0.0",
|
||||||
author="CrossDark",
|
author="CrossDark",
|
||||||
author_email="liuhanbo333@icloud.com",
|
author_email="liuhanbo333@icloud.com",
|
||||||
description="CrossDark's MarkDown",
|
description="CrossDark's MarkDown",
|
||||||
@ -18,6 +18,9 @@ setuptools.setup(
|
|||||||
'matplotlib',
|
'matplotlib',
|
||||||
'numpy',
|
'numpy',
|
||||||
],
|
],
|
||||||
|
package_data={
|
||||||
|
'': ['static/*'], # 这将包含static文件夹下的所有子文件夹和文件
|
||||||
|
},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Programming Language :: Python :: 3.11',
|
'Programming Language :: Python :: 3.11',
|
||||||
'Programming Language :: Python :: 3.12',
|
'Programming Language :: Python :: 3.12',
|
||||||
|
Loading…
Reference in New Issue
Block a user