react-markdown-editor
react-markdown-editor copied to clipboard
How can I get content normally ?
How can I get content normally ? I mean without for example **'s, ##'s ...
@SuroHak Did not understand what it meant.
I mean getContent normally without ** , ## ..
@SuroHak I don't know if it is what you want.
https://codesandbox.io/s/strange-dream-2ovo5?file=/src/App.js
@jaywcjlove I want to getContent without # in this example
## title
content `title`
getContent ⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣
title
content `title`
@SuroHak Does that mean it?
but in your example when I click to getContent I see # title
`## title
### ddd
content \`title\``.replace(/#/g, '')
@SuroHak
You can use regular expressions to process the results.
You can use https://www.npmjs.com/package/remove-markdown