Skip to content

[Bug]: fern-docs-ci missing MDX safety check for non-self-closing img tags #619

Description

@pdmack

Prerequisites

  • I searched existing issues and found no duplicates
  • I can reproduce this issue consistently
  • This is not a security vulnerability

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

  1. Add a non-self-closing <img> tag to a docs markdown file (e.g. <img src="foo.png">)
  2. Open a PR — fern check passes
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions