Skip to content

Can't identify single line and multiline code block differently #880

@sanjayrajpurohit36

Description

@sanjayrajpurohit36

Initial checklist

Problem

While using the react-markdown I ran into a probem that what if I want to render two different component for multiline and singleline code block.
Like code should be treated differently and

console.log(10)

should render a different component, in that case how I can identify that.

Current solutions

I was not able to find any solution.

Proposed solutions

There should be some custom name to identify such case like that we have for other html elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions