Render the formula symbols of the properties.

This commit is contained in:
Jan Böhmer 2020-03-15 14:53:20 +01:00
parent da09873be5
commit 0fd677d2fd
5 changed files with 42 additions and 207 deletions

View file

@ -552,6 +552,21 @@ $(document).on("ajaxUI:reload", function() {
})
});
//Register latex rendering
$(document).on("ajaxUI:reload ajaxUI:start", function() {
$('.latex').each(function(index, element) {
//@ts-ignore
window.renderMathInElement(element, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false},
{left: "\\(", right: "\\)", display: false},
{left: "\\[", right: "\\]", display: true}
]
});
});
});
//Need for proper body padding, with every navbar height
$(window).resize(function () {
let height : number = $('#navbar').height() + 10;