Skip to content

[BUG] Headings/Quotes plugins not working as expected. #890

@itzcodex24

Description

@itzcodex24

I have added the quotes and headings plugin to my MDX Editor.

        <MDXEditor
          key={note.id}
          markdown={note.content}
          onChange={console.log}
          plugins={[headingsPlugin(), quotePlugin({})]}
        />

When I make a change that starts with # or >, the symbol here gets prefixed with a back slash: \.

This in turn causes the MDX editor to not pickup on the fact that I want to create a new heading or quote.

Additionally, I was able to see that once I typed out # or >, the symbol disappeared, but I still couldn't see the quote styles or the heading styles being applied to the content that followed.

Am I misunderstanding the documentation here or doing something wrong?

I have imported the style.css also.

I am using vite with ReactTS here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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