Skip to content

It does not ignore unsupported directives anymore #19

@angrybacon

Description

@angrybacon

Initial checklist

Affected package

[email protected]

Steps to reproduce

https://stackblitz.com/edit/github-yvam2q1r

Actual behavior

I just upgraded from 3.0.1 to 4.0.0 and it seems remark-directive no longer ignores unsupported directives. In the provided sandbox, 1:3 is supposed to read as a 1-3 ratio and not a :3 directive. Is this expected?

Expected behavior

I have a number of Markdown content where : can use used with a character directly to its right (like the ratio example in the sandbox). Escaping the : with &#58; doesn't seem very practical. Before with 3.0.1, unsupported directives ie. not provided in my <Markdown components={...} /> were simply ignored and rendered as text.

Is this a case of 1172 or an actual regression?

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙋 no/questionThis does not need any changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions