fsprojects / FSharp.Formatting

F# tools for generating documentation (Markdown processor and F# code formatter)
https://fsprojects.github.io/FSharp.Formatting/
Other
464 stars 155 forks source link

Get CommonMark 0.30 tests to pass for "Tabs" section #821

Open DavidSSL opened 1 year ago

DavidSSL commented 1 year ago

Following the discussion in #90, this is in my opinion one of the steps we have to undertake.

When using the CommonMark version 0.30 test cases, the following battery of tests

https://github.com/fsprojects/FSharp.Formatting/blob/09491d141cb3d1bacb1c4b307a924014c90e8428/tests/FSharp.Markdown.Tests/CommonMarkSpecTest.fs#L47-L52

, experience the problem that some of the tests start failing.

The aim would be to ensure that the tests falling under the Tabs section to pass.

In order to do that, we have to:

we get:

Expected string length 58 but was 56. Strings differ at index 24.
  Expected: "<blockquote>\n<pre><code>  foo\n</code></pre>\n</blockquote>\n"
  But was:   "<blockquote>\n<pre><code>foo\n</code></pre>\n</blockquote>\n"