diff --git a/CrossDown.py b/CrossDown.py index 397cb54..4245019 100644 --- a/CrossDown.py +++ b/CrossDown.py @@ -318,7 +318,6 @@ class Syllabus: def __call__(self, *args, **kwargs): for num, txt in self.syllabus.items(): self.text = re.sub(f'{".".join(num)} {re.escape(txt)}', f'{"#" * len(num)}{".".join(num)} {txt}{{#' + '.'.join(num) + f'}}\n', self.text) # 按照层级为提纲添加不同等级的标题并创建锚点 - print(self.text) return self.text diff --git a/README.html b/README.html index 7d8c680..d5db842 100644 Binary files a/README.html and b/README.html differ diff --git a/README.md b/README.md index 506bdd1..42e5534 100644 --- a/README.md +++ b/README.md @@ -29,17 +29,22 @@ ___ 1.3.2 图片 ![链接图片](链接地址) ![sea](https://crossdark.com/wp-content/uploads/2024/05/1715259682-sea.jpg) +1.3.3 变量链接 +[链接文本][变量] +[变量]: https://crossdark.com 2 变量 2.1 定义 {变量名} = 值 2.2 赋值 {变量名} {锚点名} +提纲的编号已经自动配置为了锚点,可直接使用{2} 2.3 添加锚点 {#锚点名} 3 代码块 3.1 `单行` 3.1.1 LaTex `$CO_2$` +`$H_2O$` 3.2 多行 3.2.1 YAML ` @@ -93,3 +98,9 @@ graph LR - B - C - D + +9 表格 +| 表头1 | 表头2 | 表头3 | +| :--: | :--: | :--: | +| 单元格1 | 单元格2 | 单元格3 | +| 单元格4 | 单元格5 | 单元格6 |