From 0bb1916b8f942e831418363fd56c6c2e0b234344 Mon Sep 17 00:00:00 2001 From: Hugo Delaunay Date: Thu, 28 Dec 2023 16:49:45 +0100 Subject: [PATCH] Une correction avec certains blocs Latex. --- modules/api-v2-generator/common.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/api-v2-generator/common.ts b/modules/api-v2-generator/common.ts index adfcad279..f1c33c613 100644 --- a/modules/api-v2-generator/common.ts +++ b/modules/api-v2-generator/common.ts @@ -296,7 +296,7 @@ export const formatHtml = (resolver: Resolver, contentDirectoryPath: string, les const latex = math.getAttribute('data-latex') if (latex) { const display = math.getAttribute('data-latex-display') === 'true' - const mathTag = display ? `${latex}` : `${latex}` + const mathTag = display ? `
${latex}
` : `${latex}` math.replaceWith(mathTag) } } @@ -337,14 +337,6 @@ export const formatHtml = (resolver: Resolver, contentDirectoryPath: string, les } } - // Modify table elements. - const tables = root.querySelectorAll('table') - for (const table of tables) { - table.classList.add('table') - table.classList.add('table-bordered') - table.classList.add('table-hover') - } - // Modify representation elements. const representations = root.querySelectorAll('.representation') for (let i = 0; i < representations.length; i++) {