From 7ee9df47e966d80e3a9024aaea2a7aa59ff31287 Mon Sep 17 00:00:00 2001 From: Nicolas Sanchez Date: Thu, 16 Feb 2023 20:16:44 +0100 Subject: [PATCH] Correction tableaux --- pages/index.md | 10 +++++++++- static/modules/md.js | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/index.md b/pages/index.md index c7120e2..01364da 100644 --- a/pages/index.md +++ b/pages/index.md @@ -35,4 +35,12 @@ La numérotation n'est pas automatique. 2.2. second élément de deuxième niveau 3. troisième niveau 3.1. élément 3.1. -3.1.1. élément 3.1.1. \ No newline at end of file +3.1.1. élément 3.1.1. +### Tableaux +Pour l'instant la syntaxe n'est pas complètement implémentée, il n'est pas possible d'aligner le texte. +|Nom|Prénom|Âge| +|Sanchez|Sofia|8 ans| +|Sanchez|Paul|6 ans| +|Sanchez|Elena|10 ans| +|Sanchez|Sunga|44 ans| +|Sanchez|Nicolas|44 ans| \ No newline at end of file diff --git a/static/modules/md.js b/static/modules/md.js index 8542a27..015b210 100644 --- a/static/modules/md.js +++ b/static/modules/md.js @@ -15,6 +15,9 @@ function load(textarea, div) { firsttableline = null; } } + if (firsttableline != null) { + formatTable(firsttableline); + } } function save(textarea, div) {