Closed estebanabaroa closed 1 year ago
another issue with parsing is that we shouldn't allow image embeds like this post
https://ipfs.io/ipfs/QmR9j7X4ZnNmQU4N8K88jiJHjoTRjUkjYg3Qmr8dq7DksA
content: "\n![](https://i.kym-cdn.com/entries/icons/facebook/000/035/431/cover9.jpg)\n\n"
is not a link post, it's a content post that has a markdown image embedded. the markdown editor shouldn't allow embedding images, and the markdown parser shouldn't embed the images either.
This is what it looks like now:
It's not a link post, it's a comment.content embed with markdown. There should be an option to disable embedding images in markdown-it I think.
https://plebbitapp.eth.limo/#/p/12D3KooWG3XbzoVyAE6Y9vHZKF64Yuuu4TjdgQKedk14iYmTEPWu/c/QmSEsdScR76G1rvo9hB94kQKNbftuwVM5CTwuGLnFeLDmb
You can see the is part of the JSON, so the error isn't from parsing, but rather from the markdown editor: https://ipfs.io/ipfs/QmZtRVjrNPaSsHzkgehUQ332dVTY7NwUMD1WTiP9Ud5MvN
We should only support markdown basic syntax, no HTML tags should be allowed at all https://www.markdownguide.org/basic-syntax/
The markdown editor must be edited to remove whatever part is adding the
<span>