status-im / status-protocol-go

Status Protocol implementation in Go
Mozilla Public License 2.0
0 stars 1 forks source link

Add markdown support #122

Closed cammellos closed 4 years ago

cammellos commented 4 years ago

This commits introduce parsing of basic markdown in status-go.

To do this we use a stripped down version of https://github.com/gomarkdown/markdown , customized to support some extra use cases and JSON encoding. The code for the library is still a bit rough and I need to go around fixing tests etc, but keen to get the changes merged in status-react so I don't have to rebase constantly :) . https://github.com/status-im/markdown

We expose an endpoint to parse content for now until the sending of the message is fully in status-protocol-go.

Corresponding status-go/status-react PR: https://github.com/status-im/status-go/pull/1674 https://github.com/status-im/status-react/pull/9409

cammellos commented 4 years ago

@adambabik addressed feedback, thanks!

cammellos commented 4 years ago

@adambabik no, we should probably document it somewhere, currently we support (as well as code blocks):

*italic* or _italic_
**bold** or __bold__
http://link.com or https://link.com
`code`
> quote
#status-tag