dotnet / dotnet/docfx

[Bug] No build warnings when links in markdown are missing

Open
#8,756 0 comments 0 reactions 0 assignees View on GitHub
markdown
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Describe the bug**
When I have a text with a referenced link and that reference is missing in the link list, I do not get any build warnings about that missing ink.

**To Reproduce**
Build a docfx documentation with a markdown file `file.md` with the following content:

```markdown
# Header

This is some markdown text with a [good link] and a [missing link].

[good link]: https://github.com/dotnet/docfx/issues/8756
```

**Expected behavior**
A build waring is generated that the link `[missing link]` is missing in `file.md` on line 3.

**Actual behavior**
No build warning is generated.

**Context (please complete the following information):**
- OS: Windows
- Docfx version: 2.59.4.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.