Skip to content

Commit 72cbc57

Browse files
committed
Rename KaTeX.apply to KaTeX.render
1 parent d799177 commit 72cbc57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ object LaikaCustomizations {
285285
SpanDirectives.create("math") {
286286
import SpanDirectives.dsl.*
287287
rawBody.evalMap { body =>
288-
(KaTeX(body, false), KaTeX(body, false, "mathml")).mapN(
288+
(KaTeX.render(body, false), KaTeX.render(body, false, "mathml")).mapN(
289289
(katexStr, mathmlStr) =>
290290
SpanSequence(
291291
RawContent(NonEmptySet.of("html"), katexStr),
@@ -299,7 +299,7 @@ object LaikaCustomizations {
299299
BlockDirectives.create("math") {
300300
import BlockDirectives.dsl.*
301301
rawBody.evalMap { body =>
302-
(KaTeX(body, true), KaTeX(body, true, "mathml")).mapN(
302+
(KaTeX.render(body, true), KaTeX.render(body, true, "mathml")).mapN(
303303
(katexStr, mathmlStr) =>
304304
BlockSequence(
305305
RawContent(
@@ -454,7 +454,7 @@ object KaTeX {
454454
ctx.getBindings("js").getMember("katex")
455455
}
456456

457-
def apply(
457+
def render(
458458
latex: String,
459459
displayMode: Boolean = false,
460460
output: String = "htmlAndMathml"

0 commit comments

Comments
 (0)