Skip to content

Commit

Permalink
Add support for .mdh files in parameters as well as the already exist…
Browse files Browse the repository at this point in the history
…ing .md support.
  • Loading branch information
jmalarcon committed Sep 10, 2017
1 parent 2b8615a commit 6e60dea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/IISMarkdownHandler/HTMLRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/IISMarkdownHandler/MarkdownFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/IISMarkdownHandler/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit 6e60dea

Please sign in to comment.