• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Feedback

Auto parse a'la Facebook

paroxp
March 12, 2013
chat_bubble_outline 3
  • link
    paroxp
    Members 20 posts
    March 12, 2013, 4:01 p.m. March 12, 2013, 4:01 p.m.
    link

    Did you think of the "darkside force", of parsing any URL's given + additional resource check?

    For example,
    http YouTube Link com

    Will print us the title of the video, and attach it below.

    Same for images/articles or any other possible content.

    Just a suggestion/point of interest :D

    Thanks ;)

  • link
    rafalp
    Project Lead 2028 posts
    March 12, 2013, 6:59 p.m. March 12, 2013, 6:59 p.m.
    link

    I am thinking about automatic parse of links. It's not too hard to implement, but I am still looking for "smart" regex that won't break existing MD's as it parses message.

    Misago already replaces youtube/vimeo links with media players, but this is not going to happen with images. Facebook is able to automagically detect content type because it has crawler check link as its pasted into editor and see what content-type header it returns.

  • link
    paroxp
    Members 20 posts
    March 12, 2013, 7:17 p.m. March 12, 2013, 7:17 p.m.
    link

    Well yeah, I know the case. Sure some one will came up with need/plug in eventually.

    Thanks! ;)

  • link
    rafalp
    Project Lead 2028 posts
    March 12, 2013, 11:09 p.m. March 12, 2013, 11:09 p.m.
    link

    Here's test of automagicall links: misago-project.org

    Looks like they are working. Implementation is somewhat hackish but it uses stable API's and works all-right.

    Quick test to see if HTML is recognised by JS enhancer:

    www.youtube.com/watch?v=9bZkp7q19f0

    parox likes this.

    favorite 1

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago