From 5fa9e09b7d5cc6e154ddae53a3614d48129b0e5f Mon Sep 17 00:00:00 2001 From: kadimi Date: Wed, 30 Apr 2025 21:56:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=9A=90=E8=97=8F=E6=95=B0?= =?UTF-8?q?=E5=AD=A6=E5=85=AC=E5=BC=8F=E8=BD=AC=E6=8D=A2=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=8C=85=E8=A3=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、配置 config_showMathError 显示/隐藏数学公式转换异常 2、优化日志显示,配置 config_logLevel 可指定日志级别 3、包裹的代码原样输出 --- 模板-支持数学公式/card-demo-test.html | 118 +++++++++++++++ 模板-支持数学公式/正面内容模版.html | 200 ++++++++++++++++++-------- 2 files changed, 261 insertions(+), 57 deletions(-) create mode 100644 模板-支持数学公式/card-demo-test.html diff --git a/模板-支持数学公式/card-demo-test.html b/模板-支持数学公式/card-demo-test.html new file mode 100644 index 0000000..5abfb89 --- /dev/null +++ b/模板-支持数学公式/card-demo-test.html @@ -0,0 +1,118 @@ + + + + + + + + Anki-Markdown 模板测试 + + + + + +
+> 呵呵呵 + +# 一级标题 +## 二级标题 +### 三级标题 +--- +**加粗** +*斜体* +***加粗斜体*** +*** +> 引用 +--- +- 无序列表 +--- +1. 有序列表 +--- +[链接](https://www.baidu.com) +*** +![图片](https://www.baidu.com/img/bd_logo1.png) + +--- +`行内代码` +*** +```javascript +// 代码块 +console.log('hello world') +``` + +```java +/** +* @param src 待拷贝的数组. +* @param srcPos 待拷贝数组开始位置. +* @param dest 目标数组. +* @param destPos 目标数组开始位置. +* @param length 拷贝长度. +*/ +@HotSpotIntrinsicCandidate +public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); +``` +
+ + +
+ *** +超长代码换行显示 +```js +const example = "This is a very long string that will wrap automatically when exceeding screen +width.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccddddddddddddddddddddd"; +``` +
+ + +
+行内公式:$E=mc^2$ +*** +块级公式: +$$\frac{d}{dx}(x^n) = nx^{n-1}$$ +*** +矩阵: +$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$ +*** +积分: +$$\int_{a}^{b} f(x) \, dx$$ +
+ +
+*** +配置 config_showMathError 为 false 时忽略数学公式转换异常 +$2^{层数-1}$ (有异常:unicodeTextInMathMode) +$E=mc^2%$ (有异常:commentAtEnd %) +*** +
+ + + +
+ +
public class NumberPair<U extends Number, V extends Number> extends Pair<U,V> {
+    //
+    public NumberPair(U first, V second) {
+        super(first, second);
+    }
+}
+
+
+ + + +
+ + + diff --git a/模板-支持数学公式/正面内容模版.html b/模板-支持数学公式/正面内容模版.html index 759b669..d3744bc 100644 --- a/模板-支持数学公式/正面内容模版.html +++ b/模板-支持数学公式/正面内容模版.html @@ -5,24 +5,29 @@ \ No newline at end of file