CrossDown/README.html

148 lines
5.2 KiB
HTML
Raw Normal View History

2024-09-07 19:57:10 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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>
<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>
<style>
.block {
background-color: grey; /* 灰色背景 */
color: white; /* 白色文字 */
}
</style>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<!-- 可以在这里添加其他元数据和CSS链接 -->
</head>
<body>
<script>
mermaid.initialize({startOnLoad:true});
</script>
2024-09-08 22:15:57 +08:00
<h1>CrossDown</h1>
2024-09-15 20:51:20 +08:00
<p>自制的markdown添加了一些自定义的语法
效果请见<a href="https://github.com/CrossDark/CrossDown/blob/main/README.html">README.html</a></p>
2024-09-07 19:57:10 +08:00
<h1>1 基本语法<span id="1"></span></h1>
<h2>1.1 标题<span id="1.1"></span></h2>
<h1>一级标题</h1>
<h2>二级标题</h2>
<h3>三级标题</h3>
<h4>四级标题</h4>
<h5>五级标题</h5>
<h6>六级标题</h6>
<h2>1.2 样式<span id="1.2"></span></h2>
2024-09-15 20:51:20 +08:00
<h3>1.2.1 <em>斜体</em><span id="1.2.1"></span></h3>
<h3>1.2.2 <strong>粗体</strong><span id="1.2.2"></span></h3>
<h3>1.2.3 <strong><em>粗斜体</em></strong><span id="1.2.3"></span></h3>
2024-09-15 20:59:19 +08:00
<h3>1.2.4 <u>下划线</u><span id="1.2.4"></span></h3>
<h3>1.2.5 <s>删除线</s><span id="1.2.5"></span></h3>
<h3>1.2.6 <mark>高亮</mark><span id="1.2.6"></span></h3>
2024-09-07 19:57:10 +08:00
<h3>1.2.7 <ruby>在文本的正上方添加一行小文本<rt>主要用于标拼音</rt></ruby><span id="1.2.7"></span></h3>
<h3>1.2.8 <span title="只有鼠标放在上面才会显示隐藏文本">在指定的文本里面隐藏一段文本</span><span id="1.2.8"></span></h3>
<h3>1.2.9 分割线<span id="1.2.9"></span></h3>
2024-09-15 20:51:20 +08:00
<hr />
<hr />
<hr />
<h2>1.3 链接<span id="1.3"></span></h2>
2024-09-08 22:15:57 +08:00
<h3>1.3.1 普通链接<span id="1.3.1"></span></h3>
2024-09-15 20:51:20 +08:00
<p><a href="链接地址">链接文本</a>
<a href="https://crossdark.com">CrossDark</a></p>
2024-09-08 22:15:57 +08:00
<h3>1.3.2 图片<span id="1.3.2"></span></h3>
2024-09-15 20:59:19 +08:00
<p><img alt="链接图片" src="链接地址" />
<img alt="sea" src="https://crossdark.com/wp-content/uploads/2024/05/1715259682-sea.jpg" /></p>
2024-09-17 10:39:01 +08:00
<h3>1.3.3 变量链接<span id="1.3.3"></span></h3>
<p><a href="https://crossdark.com">链接文本</a></p>
2024-09-07 19:57:10 +08:00
<h1>2 变量<span id="2"></span></h1>
<h2>2.1 定义<span id="2.1"></span></h2>
<h2>2.2 赋值<span id="2.2"></span></h2>
2024-09-17 10:39:01 +08:00
<p><a href="#锚点名">锚点名</a>
提纲的编号已经自动配置为了锚点,可直接使用<a href="#2">2</a></p>
2024-09-07 19:57:10 +08:00
<h2>2.3 添加锚点<span id="2.3"></span></h2>
2024-09-15 20:51:20 +08:00
<p><span id="锚点名"></span></p>
2024-09-07 19:57:10 +08:00
<h1>3 代码块<span id="3"></span></h1>
<h2>3.1 <span class="block">单行</span><span id="3.1"></span></h2>
<h3>3.1.1 LaTex<span id="3.1.1"></span></h3>
2024-09-17 10:39:01 +08:00
<p><p>\(CO_2\)</p>
<p>\(H_2O\)</p></p>
2024-09-07 19:57:10 +08:00
<h2>3.2 多行<span id="3.2"></span></h2>
<h3>3.2.1 YAML<span id="3.2.1"></span></h3>
2024-09-15 20:51:20 +08:00
<p><pre><code class="language-yaml">
2024-09-07 19:57:10 +08:00
A:
1. a
2. b
3. c
B:
- a
- b
- c
2024-09-15 20:51:20 +08:00
</code></pre></p>
2024-09-07 19:57:10 +08:00
<h3>3.2.2 Python<span id="3.2.2"></span></h3>
2024-09-15 20:51:20 +08:00
<p><pre><code class="language-python">
2024-09-07 19:57:10 +08:00
print('CrossDown')
2024-09-15 20:51:20 +08:00
</code></pre></p>
2024-09-07 19:57:10 +08:00
<h3>3.2.3 Mermaid<span id="3.2.3"></span></h3>
2024-09-15 20:51:20 +08:00
<p><div class="mermaid">
2024-09-07 19:57:10 +08:00
graph LR
A-->B
A-->C
B-->D
C-->D
2024-09-15 20:51:20 +08:00
</div></p>
2024-09-07 19:57:10 +08:00
<h1>4 转义<span id="4"></span></h1>
2024-09-15 20:51:20 +08:00
<p>\
\a
\*</p>
2024-09-07 19:57:10 +08:00
<h1>5 引用<span id="5"></span></h1>
2024-09-15 20:51:20 +08:00
<blockquote>
<p>渲染引用 --[引用来源]</p>
</blockquote>
2024-09-17 10:39:01 +08:00
<p>6 提纲</p>
2024-09-07 19:57:10 +08:00
<h1>7 注释<span id="7"></span></h1>
<h2>7.1 强注释<span id="7.1"></span></h2>
<h2>7.2 弱注释<span id="7.2"></span></h2>
2024-09-15 20:51:20 +08:00
<p>只有在
<span class="block">// 代码中的注释弱不会被移除</span></p>
2024-09-15 20:59:19 +08:00
<h1>8 列表<span id="8"></span></h1>
<h2>8.1 有序列表<span id="8.1"></span></h2>
<ol>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
</ol>
<h2>8.2 无序列表<span id="8.2"></span></h2>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
</ul>
2024-09-17 10:39:01 +08:00
<h1>9 表格<span id="9"></span></h1>
<table>
<thead>
<tr>
<th style="text-align: center;">表头1</th>
<th style="text-align: center;">表头2</th>
<th style="text-align: center;">表头3</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">单元格1</td>
<td style="text-align: center;">单元格2</td>
<td style="text-align: center;">单元格3</td>
</tr>
<tr>
<td style="text-align: center;">单元格4</td>
<td style="text-align: center;">单元格5</td>
<td style="text-align: center;">单元格#6</td>
</tr>
</tbody>
</table>
2024-09-07 19:57:10 +08:00
</body>
</html>