From 6e60dea0080256560356686ffaf137e5cd3a1715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=2E=20Alarc=C3=B3n?= Date: Sun, 10 Sep 2017 12:58:09 +0200 Subject: [PATCH] Add support for .mdh files in parameters as well as the already existing .md support. --- src/IISMarkdownHandler/HTMLRenderer.cs | 2 +- src/IISMarkdownHandler/MarkdownFile.cs | 2 +- src/IISMarkdownHandler/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/IISMarkdownHandler/HTMLRenderer.cs b/src/IISMarkdownHandler/HTMLRenderer.cs index d490e25..50549a2 100644 --- a/src/IISMarkdownHandler/HTMLRenderer.cs +++ b/src/IISMarkdownHandler/HTMLRenderer.cs @@ -101,7 +101,7 @@ public string RenderMarkdown(MarkdownFile md) { fldVal = fldVal.Trim(); //If it ends in .md, we must inject the contents as the real value - if (fldVal.EndsWith(".md")) + if (fldVal.EndsWith(".md") || fldVal.EndsWith(MarkdownFile.HTML_EXT)) { try { diff --git a/src/IISMarkdownHandler/MarkdownFile.cs b/src/IISMarkdownHandler/MarkdownFile.cs index 1dab9c4..d00f31b 100644 --- a/src/IISMarkdownHandler/MarkdownFile.cs +++ b/src/IISMarkdownHandler/MarkdownFile.cs @@ -16,7 +16,7 @@ namespace IISMarkdownHandler public class MarkdownFile { - private const string HTML_EXT = ".mdh"; + public const string HTML_EXT = ".mdh"; #region Constructor //Reads and process the file. diff --git a/src/IISMarkdownHandler/Properties/AssemblyInfo.cs b/src/IISMarkdownHandler/Properties/AssemblyInfo.cs index 6b1b5fe..603066c 100644 --- a/src/IISMarkdownHandler/Properties/AssemblyInfo.cs +++ b/src/IISMarkdownHandler/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.1.0")] -[assembly: AssemblyFileVersion("1.1.0")] +[assembly: AssemblyVersion("1.1.1")] +[assembly: AssemblyFileVersion("1.1.1")]