Skip to content

Code blocks settings/modifiers #275

Description

@diegohaz

Hello,

I've been trying to get the string after the language on a code block like this one:

```jsx static

The idea is to pass it to my custom Code component so as to configure it in different ways. Unfortunately, this commit strips that part away on this line: https://github.com/rexxars/react-markdown/blob/51d71988191252ec74b3457561bc4f1330604b2e/src/ast-to-react.js#L70

I'd like to know if it's possible to overwrite this behavior and pass that part as a prop to my component.

Thank you

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions