You are viewing a single comment's thread from:

RE: Do you need to run a full node on localhost to make something like chainBB?

in #steem-dev7 years ago

Do you use any specific kind of script to convert posts to html, i mean i now use showdown to convert markdown to html but that doesn't turn urls into anchor tags and urls that are images into img tags.

Or have you written that part yourself instead of using a already by someone written thing?

Sort:  

Honestly I copied the Markdown previewer that steemit.com uses. The automatic linking for links and image links to images is something they added on top of markdown and isn't standard. Here's where most of the magic in their code happens:

https://github.com/steemit/condenser/blob/master/shared/HtmlReady.js

I actually wish that stuff wasn't in there, I think if someone wants to make something a link... they should make it a link.

Thanks

Coin Marketplace

STEEM 0.15
TRX 0.15
JST 0.028
BTC 53807.82
ETH 2237.98
USDT 1.00
SBD 2.30