Rosey/markdown-draft-js

Is the HR tag supported?

Closed this issue · 1 comments

OmidH commented

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

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: '---',
          },
        }
      },
    },
  })