Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse bitcoin uri's as links #692

Open
t-900-a opened this issue Oct 1, 2021 · 2 comments
Open

parse bitcoin uri's as links #692

t-900-a opened this issue Oct 1, 2021 · 2 comments

Comments

@t-900-a
Copy link

t-900-a commented Oct 1, 2021

when parsing markdown and rendering it into html bitcoin and monero uri's are not rendered as a link

example markdown
[donate](monero:83UXh3SQZGk63yCWA8cQcQFrYL6xat3aNASZcz7USgy94neK8proFxU1BJhxr4PWNPJy1ScKX2oxy6TX3BmcGJk67JbJmXG)
current output
<a target="_blank" rel="noopener">donate</a>
desired output
<a target="monero:83UXh3SQZGk63yCWA8cQcQFrYL6xat3aNASZcz7USgy94neK8proFxU1BJhxr4PWNPJy1ScKX2oxy6TX3BmcGJk67JbJmXG" rel="noopener">donate</a>

https://www.iana.org/assignments/uri-schemes/prov/bitcoin

For a live example see: https://bounties.monero.social/posts/3/twitter-bot-for-comit-btc-atomic-swaps

@plowsof
Copy link

plowsof commented Oct 3, 2021

Just add the custom uri's here (posting here for visibility)

var validUris = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://")}

@elibroftw
Copy link

Can you guys just fork black Friday and then fork fider to use your forked black Friday. Then you don't have to wait for a dead project to be revived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants