The default Onebox takes description as the first paragraph in the original article, I want to describe it as random (get a random paragraph in the original article)
For example:
I do not want to describe in the default onebox as:
, I want each time to put the link into the markdown, the description will display randomly
The description cannot be displayed randomly as you are looking to have done. That would require searching the article for random text - something that is not feasible. If you search for Onebox requirements, you will see the three required things necessary for a website to give in order for the article to be Oneboxed. A text search within an article is not one of them and it not possible.
Edit: Falco posted a few seconds ahead of me.
See Falco’s 2nd sentence above. It’s defined by the website owner to decide what will be seen when their link is embedded. There is nothing Discourse can do about that. Sorry.
But there isn’t any code to edit. The website owner creates a tag with the description that is used for the embedded link. That is what Discourse uses to Onebox the link. There are no other descriptions (random or otherwise) that exist for Onebox to retrieve and use. Please see Rich link previews with Onebox
Thank you
Falco is proposing a solution using the Custom Plugin, perhaps this will be a solution for me to develop. I still hope my goal is to display random descriptions in onebox, which are workable.
If Falco could give more detailed instructions, during the nCov epidemic season, it would be the most meaningful gift I received.
If Falco is busy, I can also do my own research. In the process of implementing this problem, if there is a problem, I hope to be able to inbox you.
Thanks Falco.