mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Utilisation de > dans mathjax ne fonctionne pas
Fixes #84 Affichage des matrice problématique : ajout de '&' entre les éléments. #71
This commit is contained in:
parent
d72dd3ba03
commit
bd04a0a07e
1 changed files with 1 additions and 10 deletions
|
|
@ -16,17 +16,8 @@ function formatLatex(text: string): string {
|
|||
);
|
||||
}
|
||||
|
||||
function escapeHTML(text: string) {
|
||||
return text
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
}
|
||||
|
||||
export default function TextType({ text }: TextTypeOptions): string {
|
||||
const formatText = formatLatex(escapeHTML(text.text.trim()));
|
||||
const formatText = formatLatex(text.text.trim());
|
||||
|
||||
switch (text.format) {
|
||||
case 'moodle':
|
||||
|
|
|
|||
Loading…
Reference in a new issue