mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
[DURACOM-273] fix markdown rendering applying before mathjax rendering
This commit is contained in:
@@ -31,7 +31,7 @@ export class ClientMathService extends MathService {
|
||||
|
||||
protected mathJaxOptions = {
|
||||
tex: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||
inlineMath: [['$', '$'], ['$$', '$$'], ['\\(', '\\)']],
|
||||
},
|
||||
svg: {
|
||||
fontCache: 'global',
|
||||
@@ -108,7 +108,7 @@ export class ClientMathService extends MathService {
|
||||
*/
|
||||
render(element: HTMLElement) {
|
||||
if (environment.markdown.mathjax) {
|
||||
this._window.nativeWindow.MathJax.typesetPromise([element]);
|
||||
return (window as any).MathJax.typesetPromise([element]) as Promise<any>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user