Closed KalleOlaviNiemitalo closed 1 year ago
https://spec.commonmark.org/dingus/ agrees with DocFX 2.58.9.
It works if I use only LF as line terminator. It does not work with CRLF. This suggests the bug is related to https://github.com/xoofx/markdig/pull/560 or https://github.com/xoofx/markdig/commit/4c92fe5a3bb1a6d22ed5a3a236bf82f7b4e2eae5.
This is blocking my upgrade from 2.58.9.
Most likely this is a regression from markdig line ending normalization feature. There were a couple of fixes but apparently more fixes and test cases are needed.
What's the next step: a standalone repro for Markdig and a bug report there?
I assume it is not feasible to patch Markdig locally for DocFX because it would restore the https://github.com/dotnet/docfx/issues/7701 version conflicts.
A bug report of the case that blocks you in the markdig repo would definitely help. Meanwhile I can check more regressions detected in this PR and potentially send fixes to markdig.
This is still reproducible in 2.59.3
Using *.md eol=lf
in .gitattributes
as a workaround.
Operating System: Windows
DocFX Version Used: 2.59.0
Template used: default
Steps to Reproduce:
docfx init
.Append the following to
index.md
using CRLF as line terminator:docfx build
_site/index.html
.Expected Behavior:
This is what DocFX 2.58.9 outputs, and what DocFX 2.59.0 should likewise output.
Actual Behavior:
This is what DocFX 2.59.0 incorrectly outputs instead.
Notes:
Doesn't matter whether I use
[RFC 7807]
,[RFC 7807][]
, or[RFC 7807][RFC 7807]
. Adding<>
around the URL doesn't help, either. Removing the link title from the link reference definition makes it work.