Prerequisites
Bug Description
fern check validates Fern configuration only — it does not parse MDX content. Non-self-closing <img> tags pass fern check but cause fern generate to fail with Unexpected closing tag </p>, breaking the publish workflow silently after merge.
Impact
Medium (workaround exists)
Component
Docs / examples
Regression?
No, this is a new use case
Steps to Reproduce
- Add a non-self-closing
<img> tag to a docs markdown file (e.g. <img src="foo.png">)
- Open a PR —
fern check passes
- Merge and trigger publish —
fern generate --docs fails with Unexpected closing tag </p>
Expected Behavior
CI catches non-self-closing <img> tags before merge.
Actual Behavior
fern check passes and the broken tag is only discovered on publish.
Prerequisites
Bug Description
fern checkvalidates Fern configuration only — it does not parse MDX content. Non-self-closing<img>tags passfern checkbut causefern generateto fail withUnexpected closing tag </p>, breaking the publish workflow silently after merge.Impact
Medium (workaround exists)
Component
Docs / examples
Regression?
No, this is a new use case
Steps to Reproduce
<img>tag to a docs markdown file (e.g.<img src="foo.png">)fern checkpassesfern generate --docsfails withUnexpected closing tag </p>Expected Behavior
CI catches non-self-closing
<img>tags before merge.Actual Behavior
fern checkpasses and the broken tag is only discovered on publish.