Skip to content

onBrokenMarkdownImagePaths to catch bad paths without failing build #3992

Open
@sserrata

Description

@sserrata

🐛 Bug Report

The latest version of D2 fails to build if markdown links or images contain an empty URL value. A build may also fail if a relative URL value path cannot be resolved.

Have you read the Contributing Guidelines on issues?

Yes.

To Reproduce

(Write your steps here:)

  1. Add a markdown link or image to a doc with an empty URL value.
  2. Attempt to perform a dev server start or production build.

Expected behavior

Inherit the onBrokenMarkdownLinks setting. For example, if set to warn then error should be displayed as a warning and dev server or build should continue.

(Write what you thought would happen.)

Actual Behavior

Seeing the following errors:

  • Error: Markdown link url is mandatory.
  • Error: Markdown Image url is mandatory.

(Write what happened. Add screenshots, if applicable.)

Your Environment

  • Docusaurus version used: alpha 70
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome 87.0.4280.88, Node.js 14.x
  • Operating system and version (desktop or mobile): MacOSX 10.15.7

Reproducible Demo

demisto/content-docs#429

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondomain: markdownRelated to Markdown parsing or syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions