Skip to content

Commit a537bff

Browse files
committed
fix: support for react-katex
1 parent 8db9fdc commit a537bff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/block_math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ pub fn block_formula(Json(args): Json<Vec<Value>>) -> FnResult<String> {
2727
))
2828
}
2929
};
30-
Ok(format!("<BlockMath>{}</BlockMath>", formula))
30+
Ok(format!("<BlockMath math=\"{}\" />", formula))
3131
}

src/inline_math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ pub fn inline_math(Json(args): Json<Vec<Value>>) -> FnResult<String> {
2727
))
2828
}
2929
};
30-
Ok(format!("<InlineMath>{}</InlineMath>", formula))
30+
Ok(format!("<InlineMath math=\"{}\" />", formula))
3131
}

0 commit comments

Comments
 (0)