Rosey / markdown-draft-js

A tool to convert content created in DraftJS to markdown and vice versa.
https://rosey.github.io/markdown-draft-js/
MIT License
318 stars 69 forks source link

Is the HR tag supported? #140

Closed OmidH closed 4 years ago

OmidH commented 4 years ago

Hi, I know that --- is supported in Remarkable. But when sending my markdown through markdownToDraft all the ---'s are filtered out. Do I do something wrong?

Here also a sample

---

**test**

---

Test

\# hello

#helo

Best,

Omid

OmidH commented 4 years ago

Sorry had a false understanding. For anyone who is looking into this here is my sample

const convMD = markdownToDraft(markdown, {
    blockTypes: {
      hr: item => {
        return {
          type: 'HR',
          mutability: 'IMMUTABLE',
          text: '---',
          data: {
            tag: '---',
          },
        }
      },
    },
  })