これが私がやろうとしていることです:
this.observableString = ko.observable('When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$');
this.regularString = 'When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$';
};
バックスラッシュがMathJaxによってレンダリングされる前に何らかの形で置き換えられるため、どちらも意味不明です。インライン テキストを使用すると、機能します。バックスラッシュに触れずにこれらの文字列を保存するにはどうすればよいですか?