diff --git a/MarkdownDeep/BlockProcessor.cs b/MarkdownDeep/BlockProcessor.cs index 8fb90a7..57714c4 100644 --- a/MarkdownDeep/BlockProcessor.cs +++ b/MarkdownDeep/BlockProcessor.cs @@ -1080,7 +1080,14 @@ internal bool ScanHtml(Block b) } // Head block extraction? - bool bHeadBlock = m_markdown.ExtractHeadBlocks && string.Compare(openingTag.name, "head", true) == 0; + +#if DOTNET_CORE + var isOpenTagHead = string.Compare(openingTag.name, "head", StringComparison.OrdinalIgnoreCase) == 0; +#else + var isOpenTagHead = string.Compare(openingTag.name, "head", true) == 0; +#endif + + bool bHeadBlock = m_markdown.ExtractHeadBlocks && isOpenTagHead; int headStart = this.position; // Work out the markdown mode for this element @@ -1481,7 +1488,7 @@ private Block BuildFootnote(List lines) } bool ProcessFencedCodeBlock(Block b) - { + { char delim = current; // Extract the fence diff --git a/MarkdownDeep/NuGet.Config b/MarkdownDeep/NuGet.Config deleted file mode 100755 index e80222c..0000000 --- a/MarkdownDeep/NuGet.Config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/MarkdownDeep/StringScanner.cs b/MarkdownDeep/StringScanner.cs index 8727088..fc0641d 100644 --- a/MarkdownDeep/StringScanner.cs +++ b/MarkdownDeep/StringScanner.cs @@ -314,7 +314,11 @@ public bool DoesMatch(string str) // Does current string position match a string public bool DoesMatchI(string str) { +#if DOTNET_CORE + return string.Compare(str, Substring(position, str.Length), StringComparison.OrdinalIgnoreCase) == 0; +#else return string.Compare(str, Substring(position, str.Length), true) == 0; +#endif } // Extract a substring diff --git a/MarkdownDeep/project.json b/MarkdownDeep/project.json index 557e190..1b04537 100755 --- a/MarkdownDeep/project.json +++ b/MarkdownDeep/project.json @@ -1,28 +1,22 @@ { + "name": "MarkdownDeep", "version": "1.0.0-*", - "compilationOptions": { + "buildOptions": { "emitEntryPoint": false }, - "configurations": { - "Debug": { - "compilationOptions": { - "define": ["DEBUG", "TRACE", "DOTNET_CORE"] - } - }, - "Release": { - "compilationOptions": { - "define": ["RELEASE", "TRACE", "DOTNET_CORE"], - "optimize": true + "frameworks": { + "netstandard1.1": { + "buildOptions": { + "define": [ "DOTNET_CORE" ] + }, + "dependencies": { + "System.Diagnostics.Debug": "4.0.11", + "System.Linq": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.InteropServices": "4.1.0", + "System.Text.RegularExpressions": "4.1.0" } } - }, - - "dependencies": { - "Microsoft.NETCore.App": "1.0.0-rc2-*" - }, - - "frameworks": { - "dnxcore50": { } } }