S
S
Sergey ZSA2018-02-27 13:58:34
go
Sergey ZSA, 2018-02-27 13:58:34

How to use double curly braces in mathjax+GO?

The backend is written in go, but there is also the mathjax library. So the problem is that sometimes in mathjax there are {{ things like this for separating formulas. How can you make go not parse these particular parentheses? Here's a variant How to make the go template engine not parse part of the html template file? does not fit.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2018-02-27
@pav5000

You can simply change these delimiters to those that are convenient for you using the https://golang.org/pkg/html/template/#Template.Delims function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question