From bdb09b9820a4da3d47e34d1460bf000b73d46e7c Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Sat, 19 Nov 2016 16:53:32 +0100 Subject: [PATCH] Update to latest CommonMark specs 0.27 --- readme.md | 2 +- src/Markdig.Tests/Specs/Specs.cs | 14 +++++++------- src/Markdig.Tests/Specs/Specs.tt | 3 +-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/readme.md b/readme.md index d3591fb3..2a9d58d4 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ You can **try Markdig online** and compare it to other implementations on [babel - **Abstract Syntax Tree** with precise source code location for syntax tree, useful when building a Markdown editor. - Checkout [MarkdownEditor for Visual Studio](https://visualstudiogallery.msdn.microsoft.com/eaab33c3-437b-4918-8354-872dfe5d1bfe) powered by Markdig! - Converter to **HTML** -- Passing more than **600+ tests** from the latest [CommonMark specs](http://spec.commonmark.org/) +- Passing more than **600+ tests** from the latest [CommonMark specs (0.27)](http://spec.commonmark.org/) - Includes all the core elements of CommonMark: - including **GFM fenced code blocks**. - **Extensible** architecture diff --git a/src/Markdig.Tests/Specs/Specs.cs b/src/Markdig.Tests/Specs/Specs.cs index d2db3044..408217ed 100644 --- a/src/Markdig.Tests/Specs/Specs.cs +++ b/src/Markdig.Tests/Specs/Specs.cs @@ -6,8 +6,8 @@ namespace Markdig.Tests // --- // title: CommonMark Spec // author: John MacFarlane - // version: 0.26 - // date: '2016-07-15' + // version: 0.27 + // date: '2016-11-18' // license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)' // ... // @@ -6036,11 +6036,11 @@ namespace Markdig.Tests // If the list item is ordered, then it is also assigned a start // number, based on the ordered list marker. // - // Exceptions: When the list item interrupts a paragraph---that - // is, when it starts on a line that would otherwise count as - // [paragraph continuation text]---then (a) the lines *Ls* must - // not begin with a blank line, and (b) if the list item is - // ordered, the start number must be 1. + // Exceptions: When the first list item in a [list] interrupts + // a paragraph---that is, when it starts on a line that would + // otherwise count as [paragraph continuation text]---then (a) + // the lines *Ls* must not begin with a blank line, and (b) if + // the list item is ordered, the start number must be 1. // // For example, let *Ls* be the lines [TestFixture] diff --git a/src/Markdig.Tests/Specs/Specs.tt b/src/Markdig.Tests/Specs/Specs.tt index b98550c8..95efac0f 100644 --- a/src/Markdig.Tests/Specs/Specs.tt +++ b/src/Markdig.Tests/Specs/Specs.tt @@ -38,8 +38,7 @@ SOFTWARE. <#@ import namespace="System.CodeDom.Compiler" #> <#@ output extension=".cs" #><# var specFiles = new KeyValuePair[] { - // new KeyValuePair("https://raw.githubusercontent.com/jgm/CommonMark/master/spec.txt", string.Empty), - new KeyValuePair("https://raw.githubusercontent.com/jgm/CommonMark/cfc84164475d3bec8be9482c21a705adc93a54f5/spec.txt", string.Empty), // 0.26 specs + new KeyValuePair("https://raw.githubusercontent.com/jgm/CommonMark/791b1c121f16d3d7e80837c6f52917e57bbb2f61/spec.txt", string.Empty), // 0.27 new KeyValuePair(Host.ResolvePath("PipeTableSpecs.md"), "pipetables|advanced"), new KeyValuePair(Host.ResolvePath("FootnotesSpecs.md"), "footnotes|advanced"), new KeyValuePair(Host.ResolvePath("GenericAttributesSpecs.md"), "attributes|advanced"),