Automatically link stock symbols in posts

I’d like to customize the way posts are rendered on my hosted Discourse instance. For example, if I wanted to link stock symbols that start with a dollar sign (“cashtags”) like $AAPL, how would I do this?

You would need to write a plugin that would scan the post content for /\$(\w+)\b/ and replace it with a link to the corresponding stock.

Note: if you are hosted with us, we only allow custom plugin on the enterprise data plan.

5 Likes

Where would they link to?

Interesting…

Best would be just yahoo finance?

Perhaps finfiz.com or barchart.com?

I would love a plugin with this functionality.

3 Likes