From ffda00305013be11d3640f57ae060b4454b0ac88 Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Sun, 19 Aug 2018 14:28:38 +0200 Subject: [PATCH] Test html --- .../AideDeJeu/MarkdownView/MarkdownView.cs | 12 +++++++++ AideDeJeu/AideDeJeu/Models/HomeItem.cs | 25 +------------------ Data/index.md | 9 +++++++ 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs b/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs index 75295cb4..35905f79 100644 --- a/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs +++ b/AideDeJeu/AideDeJeu/MarkdownView/MarkdownView.cs @@ -361,6 +361,18 @@ private void Render(HtmlBlock block) { + if(block.Type == HtmlBlockType.NonInterruptingBlock) + { + if(block.Lines.Lines.FirstOrDefault().Slice.ToString() == "
") + { + var label = new Label + { + Text = "\n", + }; + this.stack.Children.Add(label); + + } + } // ? } diff --git a/AideDeJeu/AideDeJeu/Models/HomeItem.cs b/AideDeJeu/AideDeJeu/Models/HomeItem.cs index d3fc76b1..746b4885 100644 --- a/AideDeJeu/AideDeJeu/Models/HomeItem.cs +++ b/AideDeJeu/AideDeJeu/Models/HomeItem.cs @@ -12,35 +12,12 @@ namespace AideDeJeuLib get { return AideDeJeu.Tools.Helpers.GetResourceString($"AideDeJeu.Data.index.md"); - //"# Joueurs (H&D)\n\n" + - // "## [Races](races_hd.md)\n\n" + - // "## [Classes](classes_hd.md)\n\n" + - // "## [Équipement](equipment_hd.md)\n\n" + - // "## [Multiclassage](multiclassing_hd.md)\n\n" + - // "## [Dons](feats_hd.md)\n\n" + - // "## [Caractéristiques](abilities_hd.md)\n\n" + - // "## [États spéciaux](conditions_hd.md)\n\n" + - // "## [Environnement](environment_hd.md)\n\n" + - // "## [Temps](time_hd.md)\n\n" + - // "## [Repos](resting_hd.md)\n\n" + - // "## [Sorts](spells_hd.md)\n\n" + - // //"## [Sorts de mago](spells_hd_with_class_magicien.md)\n\n" + - // //"## [Tours de magie de mago](spells_hd_with_class_magicien_minlevel_sortsmineurs_maxlevel_sortsmineurs.md)\n\n" + - // //"## [Armures légères](equipment_hd_with_type_armurelegere.md)\n\n" + - // "# MJ\n\n" + - // "## [Créatures](monsters_hd.md)\n\n" + - // //"## [Mignons](baby_bestiary_hd.md)\n\n" + - // "# VO (SRD)\n\n" + - // "## [Conditions](conditions_vo.md)\n\n" + - // "## [Spells](spells_vo.md)\n\n" + - // "## [Monsters](monsters_vo.md)\n\n" - // ; } } public override void Parse(ref ContainerBlock.Enumerator enumerator) { - throw new NotImplementedException(); + } } } diff --git a/Data/index.md b/Data/index.md index fd4fc954..4dadd53f 100644 --- a/Data/index.md +++ b/Data/index.md @@ -1,3 +1,4 @@ + # Manuel des règles